0% found this document useful (0 votes)
16 views2 pages

Practical Questions Class X SA-1SOLUTIONS

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views2 pages

Practical Questions Class X SA-1SOLUTIONS

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Q3.1.

To display all the records of table Student, you can use the following command:

```sql

SELECT * FROM Student;

```

The output will be:

| Roll No | Class | Name | Phone_No |

|---------|-------|------|----------|

| 1 | XII | SUMIT| 123456 |

| 2 | X | AMIT | 356789 |

| 3 | X | ANJU | 123654 |

| 4 | XI | MINI | 589756 |

Q3.2. To insert one record of your choice, you can use the following command:

```sql

INSERT INTO Student VALUES (5, 'XII', 'RAJU', 456789);

```

The output will be:

| Roll No | Class | Name | Phone_No |

|---------|-------|------|----------|

| 1 | XII | SUMIT| 123456 |

| 2 | X | AMIT | 356789 |

| 3 | X | ANJU | 123654 |

| 4 | XI | MINI | 589756 |

| 5 | XII | RAJU | 456789 |

Q3.3. To display the record of student whose roll number is 3, you can use the following command:

```sql

SELECT * FROM Student WHERE Roll_No = 3;

```

The output will be:

| Roll No | Class | Name | Phone_No |

|---------|-------|------|----------|

| 3 | X | ANJU | 123654 |
Q3.4. To display the record of students who are in class 'X', you can use the following command:

```sql

SELECT * FROM Student WHERE Class = 'X';

```

The output will be:

| Roll No | Class | Name | Phone_No |

|---------|-------|------|----------|

| 2 | X | AMIT | 356789 |

| 3 | X | ANJU | 123654 |

Q3.5. To display the record of student 'Anju', you can use the following command:

```sql

SELECT * FROM Student WHERE Name = 'ANJU';

```

The output will be:

| Roll No | Class | Name | Phone_No |

|---------|-------|------|----------|

| 3 | X | ANJU | 123654 |

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy