🏗 Practice: Create SQL Project Table

🧩 Practice: Create Custom Project Table in SQL

In this task, you’ll design a table to manage software projects in a Bangladeshi IT firm. You will define project names, budgets, deadlines, client info, and statuses using CREATE TABLE.

📌 Example: Software Projects Table

CREATE TABLE projects (
  project_id NUMBER PRIMARY KEY,
  project_name VARCHAR2(100) NOT NULL,
  client_name VARCHAR2(100),
  start_date DATE,
  end_date DATE,
  budget NUMBER(10, 2),
  status VARCHAR2(20) DEFAULT 'Pending',
  created_by VARCHAR2(50)
);

🧠 Explanation:

  • project_id: Unique numeric ID for each project
  • project_name: Required name of the project
  • client_name: Who requested the project (e.g., BRAC, Grameenphone)
  • start_date, end_date: Date range for delivery
  • budget: Budget allocated in BDT
  • status: Default set to 'Pending'
  • created_by: Name of project creator (e.g., Arif, Nasrin)

📋 Sample Projects

project_id project_name client_name start_date budget status
101HR PortalBRAC2023-01-10500000In Progress
102Billing SystemGrameenphone2023-03-01800000Pending
103POS SoftwareAgora2023-05-20300000Completed

📝 Practice Tasks

  • ✅ Add a new column project_type (Web, Mobile, ERP)
  • ✅ Insert 3 custom projects of your own
  • ✅ Change status to 'Completed' for project_id = 101
  • ✅ Delete a project where budget is under 400000

📌 Bonus Challenge

Link this table with an employees table by adding a manager_id field and a foreign key constraint.

📌 Summary:
Practice designing real-world tables like project tracking systems. Define appropriate data types, constraints, and relationships for efficient project management.
create project table sql, custom table design practice, software project schema bangladesh, sql practice for students, create table sql oracle, bangladeshi example sql, blogger sql tutorial

কোন মন্তব্য নেই:

একটি মন্তব্য পোস্ট করুন