Preview

SQLStatements Session 1 2 1

Good Essays
Open Document
Open Document
899 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
SQLStatements Session 1 2 1
1.create table role(Id BIGINT(20), name varchar(255) NOT NULL,primary key(Id));
2.create table skill(Id BIGINT(20)primary key, description varchar(255) NULL, name varchar(255) NOT NULL);
3.create table post_type(Id BIGINT(20)primary key,name varchar(255) NOT NULL);
4.create table department(Id BIGINT(20)primary key, name varchar(255) NOT NULL);
5.create table degree
(
Id BIGINT(20)primary key, department_id BIGINT(20) NOT NULL, name varchar(255) NOT NULL, FOREIGN KEY(department_id) REFERENCES department(Id)
);

6. create table profile
(
Id BIGINT(20)primary key, address varchar(255) NOT NULL, batch varchar(255) NOT NULL, degree_id BIGINT(20) NOT NULL, designation varchar(255) NULL, gender varchar(255) NOT NULL, FOREIGN KEY(degree_id) REFERENCES degree(Id)
);

7. create table higher_degree
(
Id BIGINT(20)primary key, degree_name varchar(255) NULL, university_name varchar(255) NULL, profile_id BIGINT(20) NOT NULL, FOREIGN KEY(profile_id) REFERENCES profile(Id)
);

8. create table experience
(
Id BIGINT(20)primary key, company_name varchar(255) NOT NULL, current BIT(1) NOT NULL, end DATETIME NULL, start DATETIME NOT NULL, profile_id BIGINT(20) NOT NULL, FOREIGN KEY(profile_id) REFERENCES profile(Id)
);

9. create table project
(
Id BIGINT(20)primary key, name varchar(255) NOT NULL, number_of_members INT(11) NOT NULL, profile_id BIGINT(20) NOT NULL, short_description varchar(255) NULL, FOREIGN KEY(profile_id) REFERENCES profile(Id)
);

10.create table profile_skills
(
skill_id BIGINT(20), profile_id BIGINT(20), PRIMARY KEY(skill_id,profile_id)
);

11. create table user
(
Id BIGINT(20) primary key, emailid varchar(255) NOT NULL, name varchar(255) NOT NULL, password varchar(255) NOT NULL, phonenumber varchar(255) NOT NULL, profile_id BIGINT(20) NULL, role_id BIGINT(20) NOT NULL, username varchar(255) NOT NULL, FOREIGN KEY(profile_id) REFERENCES profile(Id), FOREIGN KEY(role_id)

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Hiredate DATE No No Job VARCHAR2(15) No No Mgrno number(4) no no yes ( to emp.empno) Salary number(8,2) no no Comm number(8,2) no no Deptno number(2) no no yes ( to…

    • 1169 Words
    • 5 Pages
    Satisfactory Essays
  • Satisfactory Essays

    # Select a primary key for each table as indicated in the provided ERD diagram.…

    • 694 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    1. SELECT e.ename, e.deptno, d.dname, d.deptno FROM dept d LEFT OUTER JOIN emp e ON d.deptno = e.deptno ORDER BY d.deptno; SQL> SELECT e.ename, e.deptno, d.dname, d.deptno 2 FROM dept d 3 LEFT OUTER JOIN emp e 4 ON d.deptno = e.deptno 5 ORDER BY d.deptno; ENAME DEPTNO DNAME DEPTNO ---------- ---------- -------------- ----------…

    • 1542 Words
    • 7 Pages
    Good Essays
  • Satisfactory Essays

    ACCT 712

    • 1128 Words
    • 5 Pages

    1. Net cash will be different from a company's net income because of the changes in working capital (inventories, receivables, etc.) which is derived in the operating flows on a cash flow statement. By taking net income and making adjustments to reflect the changes, net cash flow from operating section will show how cash was generated. Another main reason is the translation process from accrual accounting to cash accounting because for example revenue reported on a accrual basis may not have been collected but on the cash flow statement and changes in cash is accounted for.…

    • 1128 Words
    • 5 Pages
    Satisfactory Essays
  • Better Essays

    Acct 712

    • 643 Words
    • 3 Pages

    Considering the facts given in this case, I would argue that ASC 470-10 is not applicable in this situation. Product “X” is undeveloped and the status is undetermined, therefore, payments are not guaranteed through the future revenues of this particular product (ASC 470-10-25-1). Further, based on ASC 470-10-25-2, these factors do not apply in this case to qualify as a debt.…

    • 643 Words
    • 3 Pages
    Better Essays
  • Good Essays

    Acct 332 Db2

    • 358 Words
    • 2 Pages

    Question 4: Data integrity is essential for a company 's operations. Describe various steps companies can use to ensure the integrity of its information.…

    • 358 Words
    • 2 Pages
    Good Essays
  • Good Essays

    STATSMidtermReview

    • 3397 Words
    • 14 Pages

    A recent Gallup poll asked "Do you consider pro wrestling to be a sport, or not?" Of the people asked, 81% said "No." The results were based on telephone interviews with a randomly selected national sample of 1,028 adults, 18 years and older, conducted August 16-18, 1999.…

    • 3397 Words
    • 14 Pages
    Good Essays
  • Good Essays

    Db Forum I-Theo104

    • 308 Words
    • 2 Pages

    Many ask, “Is the Bible the Word of God?” Dr. Elmer Towns compiled 10 arguments that the Bible is in fact the Word of God. Choosing one of these 10 persuading arguments was a daunting task as they are all equally convincing in my eyes. The extraordinary claims that the Bible is from God intrigued me the most.…

    • 308 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    DBQ 10 21 14

    • 729 Words
    • 2 Pages

    Absolutism is the idea that one ruler is responsible for an entire empire for everything. More simply, they have control of everything. Absolutism became especially popular in the 1500s with events that were caused because of it. Absolutism has social, political, and religious effects on every-day lives of people and governments, not to mention the unhappy nobles. Absolutism has always been something tha t leaders try to achieve, but either it doesn’t last long or the leader does not achieve full absolute power.…

    • 729 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Sulzer Case Summary

    • 71 Words
    • 1 Page

    We in the Houston facility are having a great year, however, as a company Sulzer is experiencing some economic struggles due to bad market conditions. So, due to the overall market conditions for Sulzer as a whole, the decision has been made to cancel this year’s Sales meeting at the La Cantera Resort. In addition to the Sales meeting, the Sr. Staff meeting and Christmas party have been cancelled as well.…

    • 71 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    Sd Analytical Report

    • 1238 Words
    • 5 Pages

    As a newly appointed Sports Development officer working within the local sport partnership, an analytical report will be produced to review the structure of sports development (SD). The report will also be highlighting the key providers and stakeholders in the UK at all levels.…

    • 1238 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    I believe that a good way to get student engaged in a session with tutors is the interaction between the tutor and the student. When a student is being tutored it is important that the tutor and student builds a trusting relationship with one another, so that the student is able to engage in the session. Another way to engage students in a tutoring session to build the students confidence, this way the student will be more engaged the learning process. A way in knowing that a student is engaged in a tutoring session how they are able to respond to questions that are being asked and the question that they ask. Interaction during the session say's a lot about how the student reacts to the information that they are receiving.…

    • 131 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    Soc101 Final Readings

    • 575 Words
    • 2 Pages

    This reading is mainly about the author who attends a Catholic school in which he is being picked on by straight boys. He felt loneliness, despair, and even thought of suicide. He knew that Catholic churches condemned homosexuality so he had no help to his situation. He reflected on school memories that were very dreadful such as having his lunch taken and being called faggot in class before the teacher’s arrival.…

    • 575 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Point of Sale Analysis

    • 324 Words
    • 2 Pages

    Designations are defined for herachirary of employee’s. Like Manager, Sales Boy, Account officer cashier etc. Designation table is maintain like:…

    • 324 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    1. Scott Myers is a security analyst for a telecommunications firm called Webtalk. Although he is…

    • 444 Words
    • 1 Page
    Good Essays

Related Topics