Databise Design Describe three SQL queries to provide information to the end users for this system. At least one must be a join. These can be real SQL statements or written in English Table Name Attribute Description Data Type Null Keys Sales Sales_ID Contains unique Sales ID INT No Primary key Product_Price Price of the Product VARCHAR(30) No Sales_Date Sales of the Date VARCHAR(30) No Quantity Quantity of product DATE No Personal_ID Personal_ID ofSales INT No Foreign key Cashier_ID Cashier_ID of Sales INT No Foreign key Table Name Attribute Description Data Type Null Keys Product Product ID ID of the Product INT No Primary key Product_name Name of the Product VARCHAR(50) No Brand_name Brand of the name VARCHAR(50) No Quantity Quantity VARCHAR(20) No Pharmaceutical_ID Pharmaceutical of the ID INT No Foreign Key
SQL
SQL stands for Structured Query Language, is a form of communication that uses queries structured in a specific format to store, manage & retrieve data from a relational database.
Queries
A query is a type of computer programming language that is used to retrieve data from a database. Databases are useful in a variety of ways. They enable the retrieval of records or parts of records, as well as the performance of various calculations prior to displaying the results. A search query is one type of query that many people perform several times per day. A search query is executed every time you use a search engine to find something. When you press the Enter key, the keywords are sent to the search engine, where they are processed by an algorithm that retrieves related results from the search index. Your query's results are displayed on a search engine results page, or SER.
Databise Design
Describe three SQL queries to provide information to the end users for this system. At least one must be a join. These can be real SQL statements or written in English
Table Name |
Attribute |
Description |
Data Type |
Null |
Keys |
Sales |
Sales_ID |
Contains unique Sales ID |
INT |
No |
Primary key |
Product_Price |
Price of the Product |
VARCHAR(30) |
No |
||
Sales_Date |
Sales of the Date |
VARCHAR(30) |
No |
||
Quantity |
Quantity of product |
DATE |
No |
||
Personal_ID |
Personal_ID ofSales |
INT |
No |
Foreign key |
|
Cashier_ID |
Cashier_ID of Sales |
INT |
No |
Foreign key |
Table Name |
Attribute |
Description |
Data Type |
Null |
Keys |
Product |
Product ID |
ID of the Product |
INT |
No |
Primary key |
Product_name |
Name of the Product |
VARCHAR(50) |
No |
||
Brand_name |
Brand of the name |
VARCHAR(50) |
No |
||
Quantity |
Quantity |
VARCHAR(20) |
No |
||
Pharmaceutical_ID |
Pharmaceutical of the ID |
INT |
No |
Foreign Key |
|
Trending now
This is a popular solution!
Step by step
Solved in 2 steps