SQL Question Bank Solution-Two-Most-Repeated
SQL Question Bank Solution-Two-Most-Repeated
Question-03
c) Writing SQL code:
i. Create a table called “customer_information” that has attributes – customer_id, customer_name,
customer_location
ii. Find out the – sales, sales_person, transaction_id & region from the table- transactions where the
sales amount is greater than BDT 10,000
select sales, sales_person, transaction_id, region from transactions where sales >10000;
iii. Make a query & display – customer_name, address, postal_code, country from the table –
customer_information, also order the output according to customer_name in the ascending
alphabetical order
iv. Add a new column named customer_review to the table- customer_information, considering
reviews can be given only on the scale of 1 to 5
Output: