Write the correct code in SQL
1. What is the name and address of the customer that placedorder 57?
2. Assume there is only one product with the description CherryEnd Table. List the names of the raw materials that go into makingthat product.
3. List the product id, description, and finish of the leastexpensive products. (Note: A couple of rows show a price of 0.Exclude products with a price of 0 from your query.)
4. How many orders did each customer from New York state (i.e.NY) place? List the answers in order from the most to the leastorders.
5. What are the cheapest oak-finished products?
6. Which products in product lines 2 or 4 are more expensivethan the most expensive birch-finished product? List the results inorder by product id.
7. Assume there is only one customer named Contemporary Casuals.What products has Contemporary Casuals ordered? Include the productid and product description in your answer and order your answer byproduct id.
8. Based on customer id (and no other information about acustomer), how many of the product 48†Bookcase (in anyfinish) did each customer order? Only include customers in youranswer who ordered at least 4 such items.
9. How many raw materials are used in each product? Order youranswers by product id. (Note: Based on the limited data in thedatabase, you should only find six products included in youranswer.)
10. How many raw materials are used in each product? Onlyinclude materials supplied by vendor 2. Order your answers byproduct id. (Hint: You will need the supplies table but not thevendor table to answer this question.)
Tables and Fields in Database db_pvfc12_big
(Note: The use of fields in Teradata SQL is not casesensitive.)
CUSTOMER_T
          Customerid
          Customername
          Customeraddress
          Customercity
          Customerstate
          Customerpostalcode
PRODUCT_T
          Productid
          Productdescription
          Productfinish
          Productstandardprice
          Productonhand
          Productlineid
RAWMATERIAL_T
          Materialid
          Materialname
          Thickness
          Width
          Size
          Material
          Materialstandardprice
          Unitofmeasure
          Materialtype
ORDER_T
          Orderid
          Orderdate
          Customerid
          Fulfillmentdate
          Salespersonid
          Shipadrsid
ORDERLINE_T
          Orderlineid
          Orderid
          Productid
          Orderedquantity
USES_T
          Productid
          Materialid
          Quantityrequired
SUPPLIES_T
          Vendorid
          Materialid
          Supplyunitprice