This is an example of a week of sales from a cell phone store. I created five .csv files and imported them into DBeaver. The above SQL query is just one example of how an analyst could query this data. This example ranks the total profit sold, shows the total number of items sold, and the average profit per item for each sales representative.
CREATE TABLE TestTable (
id INTEGER PRIMARY KEY AUTOINCREMENT,
firstname VARCHAR(255),
lastname VARCHAR(255),
email VARCHAR(255) NOT NULL UNIQUE,
age INT,
gender VARCHAR(255),
dateentered TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL
)
INSERT INTO TestTable (
firstname,
lastname,
email,
age,
gender
)
VALUES (
'John',
'Johnson',
'29',
'male'
)
SELECT *
FROM TestTable
We use cookies to analyze website traffic and optimize your website experience. By accepting our use of cookies, your data will be aggregated with all other user data.