Question: Please set up a dataset with 20 rows and 1 header row in Bit.io. Make sure your dataset is meaningful. Also make sure you have

Please set up a dataset with 20 rows and 1 header row in Bit.io. Make sure your dataset is meaningful. Also make sure you have at least 3 columns with numerical and string/character values.

For each of the following please create an appropriate SQL statement and execute the statement. Take screenshots of the statement and the corresponding results.

From your database:

  1. Select all rows in the table
  2. Select any 2 columns in the table
  3. Create a SQL statement that uses the AND operator in a where dause
  4. Create a SQL statement that uses the OR operator in a where clause
  5. Create a SQL statement that uses the NOT operator in a where cause
  6. Create a SQL statement that shows that a column is sorted ascending
  7. Create a SQL statement that shows that a column is sorted descending
  8. Create a SQL statement that shows top 3 records of the table
  9. Create a SQL statement that counts elements in a column
  10. For a string column use the LIKE operator to select records that start with a certain character (for example if you have records that start with the letter "a" then use the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!