Documente Academic
Documente Profesional
Documente Cultură
-----------------------------------------------------------------------------------
-----------------------------------------------------------------------------
2) use the database practice1.
-----------------------------------------------------------------------------------
-------------------------------------------------------------------
3) Create a table customerdetails with following fields in practice1.
-----------------------------------------------------------------------------------
--------------------------------------------------
4)
5) Display all the columns for all the records. Avoid using *.
6) Display firstname,lastname for all the records.
7) Display the firstname and customerid who don't have middlename.
8) Display all the details for customer whose address2 is null.
9) Display the customerid whose lastname is Dutta.
10) Display the mobilenumber for customerid C00001 and C00002.
11) Display the details of customer whose firstname is Rohina and lastname is
Mathur.
12) Update the mobilenumber for C00001 as 8756312345.
13) Update the middlename and lastname of the customer whose firstname is Ratna.
Make the lastname as Datta and middlename as Shree.
14) Delete the record of customer where the customerid is C00003.
15) Create one more table called itemdetails in the same practice database with
following fields.
33) Create one more table called item_transaction with the following details
39) What is a primary key? What is the purpose of declaring a primary key? What do
you understand by composite primary key?
Can we have multiple primary keys in a table? What are the restrictions related
to primary key?