Practical-1 Table - Customer: Output
Practical-1 Table - Customer: Output
Table -Customer
CNUM CNAME CITY RATING SNUM
2001 Harsh London 100 1001
2002 Gita Bombay 200 1002
2003 Lalit Rome 200 1003
2004 Govind Surat 300 1001
2005 Chirag London 100 1004
2006 Chinmay Goa 350 1001
Give all the information about all the customers with salesman number 1001.
Output
2001 Harsh London 100 1001
2004 Govind Surat 300 1001
2006 Chinmay Goa 350 1001
PRACTICAL -2
ORDER
ONUM AMOUNT ODATE CNUM SNAME
3001 18.69 13/07/2022 2001 1001
3002 767.50 13/07/2022 2002 1005
3003 1500 13/07/2022 2005 1002
3004 1200 13/07/2022 2004 1001
3005 80 13/07/2022 2006 1005
3006 4000 13/07/2022 2003 1004
3007 455 13/07/2022 2008 1002
3008 3500 14/07/2022 2009 1001
3009 1485 14/07/2022 2010 1005
3010 65 14/07/2022 2007 1001
3011 1850 14/07/2022 2011 1004
Output
QUES-3 List of SNUM of all salesmen with orders in order table without any duplicates.
Sol-
SELECT DISTINCT SNUM FROM order ORDER BY SNUM.
OUTPUT
SNUM
1001
1002
1004
1005
PRACTICAL-4
Table -Customer
CNUM CNAME CITY RATING SNUM
2001 Harsh London 100 1001
2002 Gita Bombay 200 1002
2003 Lalit Rome 200 1003
2004 Govind Surat 300 1001
2005 Chirag London 100 1004
2006 Chinmay Goa 350 1001
Ques -List all customers whose names begins with a letter 'C'.
SOL:-
SELECT CNAME
FROM Customer
OUTPUT
CNAME
Chinmay
Chirag
PRACTICAL -5
QUES - Produce the order no, amount and date of all orders.
ORDER(TABLE NAME)
Sol-
output