Advertisements
Advertisements
Identify the type of data being collected/generated in the following scenario:
Writing tweets
Concept: undefined > undefined
Identify the type of data being collected/generated in the following scenario:
Filling out an application form online.
Concept: undefined > undefined
Advertisements
For the annual day celebrations, the teacher is looking for an anchor in a class of 42 students. The teacher would make a selection of an anchor on the basis of singing skills, writing skills, as well as monitoring skills.
Which mode of data collection should be used?
Concept: undefined > undefined
Give the term for the following:
DBMS creates a file that contains a description of the data stored in the database.
Concept: undefined > undefined
Differentiate between Database state and database schema.
Concept: undefined > undefined
Differentiate between the following statement:
ALTER and UPDATE
Concept: undefined > undefined
A shop called Wonderful Garments which sells school uniforms maintains a database SCHOOLUNIFORM as shown below. It consisted of two relations - UNIFORM and COST. They made UniformCode the primary key for UNIFORM relations. Further, they used UniformCode and Size to be composite keys for COSTrelation. By analyzing the database schema and database state, specify SQL queries to rectify the following anomalies.
- M/S Wonderful Garments also keeps handkerchiefs of red colour, medium size of Rs. 100 each.
- INSERT INTO COST (UCode, Size, Price) values (7, 'M', 100);
When the above query is used to insert data, the values for the handkerchief without entering its details in the UNIFORM relation are entered. Make a provision so that the data can be entered in the COST table only if it is already there in the UNIFORM table. - Further, they should be able to assign a new UCode to an item only if it has a valid UName. Write a query to add appropriate constraints to the SCHOOLUNIFORM database.
- Add the constraint so that the price of an item is always greater than zero.
Concept: undefined > undefined
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”.
- Create a table “TEAM” with the following considerations:
i) It should have a column TeamID for storing an integer value between 1 to 9, which refers to the unique identification of a team.
ii) Each TeamID should have its associated name (TeamName), which should be a string of length not less than 10 characters. - Using table level constraint, make TeamID the primary key.
- Show the structure of the table TEAM using a SQL statement.
- As per the preferences of the students four teams were formed as given below. Insert these four rows in the TEAM table:
Row 1: (1, Team Titan)
Row 2: (2, Team Rockers)
Row 3: (3, Team Magnet)
Row 3: (4, Team Hurricane) - Show the contents of the table TEAM using a DML statement.
- Now create another table MATCH_DETAILS and insert data as shown below. Choose appropriate data types and constraints for each attribute.
Table: MATCH_DETAILS | |||||
MatchID | MatchDate | FirstTeamID | SecondTeamID | FirstTeamScore | SecondTeamScore |
M1 | 2018-07-17 | 1 | 2 | 90 | 86 |
M2 | 2018-07-18 | 3 | 4 | 45 | 48 |
M3 | 2018-07-19 | 1 | 3 | 78 | 56 |
M4 | 2018-07-19 | 2 | 4 | 56 | 67 |
M5 | 2018-07-18 | 1 | 4 | 32 | 87 |
M6 | 2018-07-17 | 2 | 3 | 67 | 51 |
Concept: undefined > undefined
Using the CARSHOWROOM database given in the chapter, write the SQL queries for the following:
- Add a new column Discount in the INVENTORY table.
- Set appropriate discount values for all cars keeping in mind the following:
(i) No discount is available on the LXI model.
(ii) VXI model gives a 10 percent discount.
(iii) A 12 percent discount is given on cars other than the LXI model and VXI model. - Display the name of the costliest car with the fuel type “Petrol”.
- Calculate the average discount and total discount available on Baleno cars.
- List the total number of cars having no discount.
Concept: undefined > undefined
Mention any two main advantages of using a network of computing devices.
Concept: undefined > undefined
Write down the names of a few commonly used networking devices.
Concept: undefined > undefined
How is tree topology different from bus topology?
Concept: undefined > undefined
What do you mean by a modem? Why is it used?
Concept: undefined > undefined
Explain the following device:
Switch
Concept: undefined > undefined
Explain the following device:
Repeater
Concept: undefined > undefined
Explain the following device:
Gateway
Concept: undefined > undefined
Explain the following device:
Router
Concept: undefined > undefined
Explain the following device:
NIC
Concept: undefined > undefined
Which communication mode allows communication in both directions simultaneously?
Concept: undefined > undefined
______ command is used to remove the primary key from a table in SQL.
Concept: undefined > undefined