Structured Query Language (SQL)

Class 12 · Computer Science · 32 Questions

Think and Reflectintermediate💡 Understand2 marksShort Answer

What are the minimum and maximum income values that can be entered in the income attribute given the data type is INT?

1(a)beginner🧠 Remember2 marksShort Answer

Define RDBMS. Name any two RDBMS software.

1(c)beginner💡 Understand2 marksShort Answer

Site any two differences between Single Row Functions and Aggregate Functions.

1(d)beginner💡 Understand2 marksShort Answer

What do you understand by Cartesian Product?

1(e)intermediate🔍 Analyze2 marksShort Answer

Differentiate between the following statements:

1(f)intermediate🔧 Apply2 marksShort Answer

Write the name of the functions to perform the following operations:

2(a)beginner🔧 Apply1 markVery Short

Write the output produced by the following SQL statement: SELECT POW(2,3);

2(b)beginner🔧 Apply1 markVery Short

Write the output produced by the following SQL statement: SELECT ROUND(342.9234,-1);

2(c)beginner🔧 Apply1 markVery Short

Write the output produced by the following SQL statement: SELECT LENGTH("Informatics Practices");

2(d)beginner🔧 Apply1 markVery Short

Write the output produced by the following SQL statement: SELECT YEAR("1979/11/26"), MONTH("1979/11/26"), DAY("1979/11/26"), MONTHNAME("1979/11/26");

2(e)beginner🔧 Apply1 markVery Short

Write the output produced by the following SQL statement: SELECT LEFT("INDIA",3), RIGHT("Computer Science",4), MID("Informatics",3,4), SUBSTR("Practices",3);

3(e)beginner🔧 Apply1 markShort Answer

Consider the following MOVIE table and write the SQL queries based on it. List MovieID, MovieName and Cost for all movies with ProductionCost greater than 10,000 and less than 1,00,000.

4(a)beginner🔧 Apply1 markShort Answer

Suppose your school management has decided to conduct cricket matches between students of Class XI and Class XII. Students of each class are asked to join any one of the four teams – Team Titan, Team Rockers, Team Magnet and Team Hurricane. During summer vacations, various matches will be conducted between these teams. Help your sports teacher to do the following: Create a database “Sports”.

4(b)intermediate🔧 Apply2 marksShort Answer

Create a table “TEAM” with following considerations:

4(c)beginner🔧 Apply1 markShort Answer

Using table level constraint, make TeamID as the primary key.

4(d)beginner🔧 Apply1 markShort Answer

Show the structure of the table TEAM using a SQL statement.

4(e)beginner🔧 Apply1 markShort Answer

As per the preferences of the students four teams were formed as given below. Insert these four rows in TEAM table: Row 1: (1, Team Titan) Row 2: (2, Team Rockers) Row 3: (3, Team Magnet) Row 3: (4, Team Hurricane)

4(f)beginner🔧 Apply1 markShort Answer

Show the contents of the table TEAM using a DML statement.

5(a)intermediate🔧 Apply1 markShort Answer

Using the sports database containing two relations (TEAM, MATCH_DETAILS) and write the queries for the following: Display the MatchID of all those matches where both the teams have scored more than 70.

5(b)intermediate🔧 Apply1 markShort Answer

Using the sports database containing two relations (TEAM, MATCH_DETAILS) and write the queries for the following: Display the MatchID of all those matches where FirstTeam has scored less than 70 but SecondTeam has scored more than 70.

Page 1