SQL Queries

SQL QUERIES


TABLE CREATION


Table: department

create table department(dno number(5)PRIMARY KEY,dname varchar(15));
Table created.

Table: student

create table student(regno number(7)NOT NULL, studname varchar(15), dno number(5), bookno number(6) PRIMARY KEY, issuedon date NOT NULL, tobereturnon date NOT NULL);
Table created.


INSERTION


Department

insert into department values('&dno','&dname');
select * from department;

DNO
DNAME
205
IT
104
CSE
105
ECE
107
MECH
109
EEE

Student

insert into student values('&regno','&studno','&dno','&bookno','&issuedon','&tobereturnon');
select * from student;

REGNO
STUDNAME
DNO
BOOKNO
ISSUEDON
TOBERETUR
10475
Vani
104
7725
11-DEC-11
10-JAN-12
20548
Mani
205
7245
16-DEC-11
15-JAN-12
10568
Anu
105
6662
17-DEC-11
01-JAN-12
20562
Risha
205
7277
04-DEC-11
03-JAN-12
10966
Priya
109
2270
05-DEC-11
04-JAN-12
20548
Mani
205
6675
17-DEC-11
01-JAN-12
10568
Anu
105
6742
17-DEC-11
01-JAN-12
10568
Anu
105
652
17-DEC-11
01-JAN-12
8 rows selected.

No comments:

Topics Covered

Purchasing Concurrent program INVENTORY MODULE Inventory Concepts Min-Max Puchasing Sales Order Supply Chain Management Xml Publisher dff Alert Creation Assembly Pull Assigning Approval Groups Assigning Item BOM Tables Backend Tables Base Tables Bills of Material Tables CATALOG TABLES CATEGORY TABLES Closed not Summarized Concurrent Programs Concurrent Request Consigned and VM Inventory Count (*) Customer Items Customer Items Architecture DDL DML Defining Line Type Defining Subinventories Drop Ship EBS EVEN NUMBERED Error: - APP-PER-50022 FND Tables FRM-40735 Fetch Item Information Flexfields Functional GENERIC DISPOSITIONS Hosting ITEM LOCATIONS TABLE Idle Session Timeout Important questions Introduction to Database Invalid Identifier Error Inventory Inventory Implementation Inventory Item master Inventory Transaction Item Attributes Item Cross Reference Item Defining Attributes Item Deletion Item Master Item Relationships Item Status Attributes Item Tables Java Setup for R12 Key Tables Location Creation Lot and Serial Manufacturer Items Move order Normalization ODD NUMBERED ORA-29273 ORDER MANAGEMENT Oracle Apps Oracle Instance Oracle Order Management PURCHASING MODULE Payable Table Payment Terms Procure to Pay Cycle Profile Categories Purchase - PO Revisions Purchase - Purchase Document Types Purchase Order Purchasing - Define Buyers Purchasing - Defining Approval Groups Purchasing - Invoice matching Purchasing Options Quotations Quote Analysis RFQ RICE Components Receipt Routings Receivables (AR) Tables Receiving Options Registration of a Report Requisition Templates Responsibility Query SALES ORDER TABLE SALES PERSON CREATION SCM Service Contract Sql Self Joins Subinventory Subinventory Transfer Supplier Lists Suppliers TEMP Tablespace Toad Value Sets Wildcard Workflow copy column find an PO details implementation inbound order to cash org_id out bound out of the box implementation vanilla implementation