Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pranava007/sql-day-2-task
This is a Database design
https://github.com/pranava007/sql-day-2-task
db-design design mysql sql
Last synced: about 4 hours ago
JSON representation
This is a Database design
- Host: GitHub
- URL: https://github.com/pranava007/sql-day-2-task
- Owner: pranava007
- Created: 2024-06-22T09:23:33.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-06-22T09:25:48.000Z (5 months ago)
- Last Synced: 2024-06-22T18:54:27.038Z (5 months ago)
- Topics: db-design, design, mysql, sql
- Homepage:
- Size: 346 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Table Descriptions:
batchbat_id: Integer, primary key. Unique identifier for each batch.
bat_name: Variable character string (up to 30 characters). Name of the batch.
domaindom_id: Integer, primary key. Unique identifier for each domain.
dom_name: Variable character string (up to 30 characters). Name of the domain.
professionalprof_id: Integer, primary key. Unique identifier for each professional.
prof_name: Variable character string (up to 30 characters). Name of the professional.
salarysal_id: Integer, primary key. Unique identifier for each salary record.
feefee_id: Integer, primary key. Unique identifier for each fee record.
mentormen_id: Integer, primary key. Unique identifier for each mentor.
men_name: Variable character string (up to 50 characters). Name of the mentor.
men_email: Variable character string (up to 50 characters). Email of the mentor.
bat_id: Integer, foreign key. References batch(bat_id).
prof_id: Integer, foreign key. References professional(prof_id).
sal_id: Integer, foreign key. References salary(sal_id).
learnerslen_id: Integer, primary key. Unique identifier for each learner.
len_name: Variable character string (up to 50 characters). Name of the learner.
len_email: Variable character string (up to 50 characters). Email of the learner.
bat_id: Integer, foreign key. References batch(bat_id).
dom_id: Integer, foreign key. References domain(dom_id).
fee_id: Integer, foreign key. References fee(fee_id).
DESC Command:
The DESC (or DESCRIBE) command in SQL is used to display the structure of a table. It provides information about the columns in the table, including:Field: The name of the column.
Type: The data type of the column.
Null: Whether the column can contain NULL values.
Key: If the column is part of a primary key (PRI), foreign key (MUL), or unique key (UNI).
Default: The default value of the column.
Extra: Additional information about the column (e.g., if it is auto-increment).
When you run DESC table_name;, it outputs the schema of the specified table.