SQL Questions
SQL Questions
2. Select the FirstName and LastName columns then using these two column
create Full Name with “-” between firstname and LastName from
the DimCustomer table.
3. Retrieve the top 10 rows from the FactInternetSales table.
4. Select distinct ProductKey values from the FactInternetSales table.
5. Retrieve all columns from the DimProduct table where the ProductKey is
310.
6. Select the EnglishProductName and StandardCost from
the DimProduct table.
7. Retrieve the top 5 most expensive products based on StandardCost from
the DimProduct table.
8. Select all columns from the DimGeography table where
the CountryRegionCode is 'US'.
9. Retrieve the SalesOrderNumber and SalesAmount from
the FactInternetSales table.
10.Select distinct CurrencyKey values from the FactCurrencyRate table.
-- Add one column in the table Is_active with datatype Boolean ( value as
0 and 1)
-- Update the Is_active column value to 1 if the column value is 0 and vice
versa.