Anda di halaman 1dari 5

1.

select * from Product where V_code = '21344';

2. select * from Vendor where V_State =null;

3. select * from Customer where Cus_balance between 200 and 300;

4. select max(Cus_balance) from Customer;

5. select Cus_fname, Cus_lname from Customer, invoice where Customer.cus_code =


Invoice.cus_code;

6. SELECT CUS_CODE FROM CUSTOMER WHERE CUS_CODE NOT IN


(SELECT CUS_CODE FROM INVOICE);

7. SELECT CUS_fname, Cus_lname FROM CUSTOMER WHERE CUS_CODE NOT


IN (SELECT CUS_CODE FROM INVOICE);

8. select

Count(*)

from

Customer,

invoice

where

Customer.cus_code

Invoice.cus_code;

9. SELECT Cus_fname, cus_lname, Count(Customer.cus_code) from customer, invoice


Where customer.cus_code = invoice.cus_code;

10. Alter table customer add credithistory varchar(6);

11. Update Customer set credithistory = 'Bad' where cus_code = '10011';

12. Delete from Emp where emp_lname = 'Genkazi' and emp_fname = 'Leighla';

Anda mungkin juga menyukai