SlideShare una empresa de Scribd logo
1 de 8
SQL COMMANDS
CREATE TABLE COMMANDS

Case Solved Table

create table case_solved

(

case_solved_id number primary key,

case_id number not null unique references case(case_id),

fir_no number not null unique,

date_case_closed date not null

);



Case Table

create table case

(

case_id number primary key,

fir_no number not null references fir(fir_no),

case_incharge_id number not null unique,

date_case_open date not null

);

Complainant table

create table complainant

(

fir_no number primary key references fir(fir_no),

complaintant_name text(30) not null,

fathers_name text(30) not null,
address text(50) not null,

sex text(5) not null,

phone_no number not null

);



Daily diary table

create table daily_diary

(

s_no number primary key,

_date date not null,

emp_id number not null references employee(emp_id),

duty text(30) NOT NULL,

duty_shift text(30) not null

);

Designation Table

create table designation

(

emp_id number primary key references employee(emp_id),

rank text(20) not null,

salary number not null,

date_joined date not null

);

Duty Officer Table

create table duty_officer

(
fir_no number references fir(fir_no),

duty_officer_id number references employee(emp_id),

primary key(fir_no,duty_officer_id)

);

Employee table

create table employee

(

emp_id number primary key,

emp_name text(30) not null,

sex text(5) not null,

address text(100) not null,

phone_no number not null

);

Empound Officer Table

create table empound_officer

(

empound_id number references empound(empound_id),

investigation_officer_id number references employee(emp_id),

primary key(empound_id,investigation_officer_id)

);

Empound Table

create table empound

(

empound_id number primary key,

fir_no number not null references fir(fir_no),
vehicle_no number not null,

date_emopound date not null,

date_release date not null,

under_section text(30) not null

);

FIR Investigation Officer Table

create table fir_investigation_officer

(

fir_no number references fir(fir_no),

investigation_officer_id number references employee(emp_id),

primary key(fir_no,investigation_officer_id)

);

FIR Table

create table fir

(

fir_no number primary key,

date_of_fir date not null,

date_of_crime date not null,

under_section text(20) not null,

details text(50)

);
INSERTION COMMANDS
Designation table

INSERT INTO designation ( emp_id, rank, salary, date_joined )

VALUES ('1231', 'constabler', '20000', '1-6-1995');



EMPLOYEE TABLE

INSERT INTO employee ( emp_id, emp_name, address, sex, phone_no )

VALUES ('1231', 'rajesh kumar', 'model town ludhiana', 'male', '9592477245');



FIR TABLE

INSERT INTO fir ( fir_no, date_of_fir, date_of_crime, under_section, details )

VALUES ('1023', '24-4-2011', '21-4-2011', '420', 'robbery');



EMPOUND_OFFICER

INSERT INTO empound_officer ( empound_id, investigation_officer_id )

VALUES ('1342', '1231');



FIR_INVESTIGATION_OFFICER

INSERT INTO fir_investigation_officer ( fir_no, investigation_officer_id )

VALUES ('1023', '1231');



DUTY_OFFICER

INSERT INTO duty_officer ( fir_no, duty_officer_id )

VALUES ('1023', '1231');
DAILY_DIARY

INSERT INTO daily_diary ( s_no, _date, emp_id, duty, duty_shift )

VALUES ('23', '24-04-2011', '1231', '8', 'morning');



EMPOUND

INSERT INTO empound ( empound_id, fir_no, vehicle_no, under_section, date_empound, date_release )

VALUES ('1342', '1023', '3465', '356', '24-4-2011', '21-04-2011');



COMPLAINTANT

INSERT INTO complaintant ( fir_no, complaintant_name, fathers_name, address, sex, phone_no )

VALUES ('1023', 'Ravi kumar', 'parkash kumar', 'haibowal ludhiana', 'male', '9834562786');



CASE

INSERT INTO case ( case_id, fir_no, case_incharge_id, date_case_open )

VALUES ('234', '1023', '1231', '24-4-2011');



CASE_SOLVED

INSERT INTO case_solved ( case_solved_id, case_id, fir_no, date_case_closed )

VALUES ('251', '234', '1023', '27-5-2011');
Data query language


SELECT emp_name, address

FROM employee;

Output




SELECT *

FROM empound

WHERE fir_no<1035;




SELECT *

FROM designation;
SELECT DISTINCT empound_id

FROM empound_officer;

Output




SELECT *

FROM complaintant

WHERE complaintant_name='kalpana' And fathers_name='niraj sharma';




SELECT *

FROM complaintant

WHERE complaintant_name='rajesh kumar' Or fathers_name='niraj sharma';

Output

Más contenido relacionado

Destacado

Office christmas party
Office christmas partyOffice christmas party
Office christmas partylaureen383
 
памятка по кпу
памятка по кпупамятка по кпу
памятка по кпуDemanessa
 
Lhc osakilpailu 2 lähtölista
Lhc osakilpailu 2 lähtölistaLhc osakilpailu 2 lähtölista
Lhc osakilpailu 2 lähtölistahiihtocup
 
Vet & Green Economy for Sustainable Development
Vet & Green Economy for Sustainable Development Vet & Green Economy for Sustainable Development
Vet & Green Economy for Sustainable Development Nicoleta Olcott
 
Pollution agenda project
Pollution agenda projectPollution agenda project
Pollution agenda projectzacharyvasek
 
выступл.на конференции
выступл.на конференциивыступл.на конференции
выступл.на конференцииDemanessa
 
Presentatie sports events ipad
Presentatie sports events ipadPresentatie sports events ipad
Presentatie sports events ipadHappy Company
 
Cocaine cloud administration at YaC
Cocaine cloud administration at YaCCocaine cloud administration at YaC
Cocaine cloud administration at YaCDenis Zaitsev
 
White paper (kwarts) stofvrijwerken in de bouw
White paper (kwarts) stofvrijwerken in de bouwWhite paper (kwarts) stofvrijwerken in de bouw
White paper (kwarts) stofvrijwerken in de bouwBDF446RFX
 
Situation task action_results_document_-_star_original_original
Situation task action_results_document_-_star_original_originalSituation task action_results_document_-_star_original_original
Situation task action_results_document_-_star_original_originalhmckinney704
 
Analysis of pendulum’s digipak
Analysis of pendulum’s digipakAnalysis of pendulum’s digipak
Analysis of pendulum’s digipakMini Burton
 
Passivevoice
PassivevoicePassivevoice
Passivevoicebensu70
 
Anythinglean Slide Show
Anythinglean Slide ShowAnythinglean Slide Show
Anythinglean Slide Showanythinglean
 
Jack burtons magazine analysis
Jack burtons magazine analysisJack burtons magazine analysis
Jack burtons magazine analysisMini Burton
 

Destacado (20)

processo-jurisdicao-e-processualismo-constitucional-democratico-na-america-l...
 processo-jurisdicao-e-processualismo-constitucional-democratico-na-america-l... processo-jurisdicao-e-processualismo-constitucional-democratico-na-america-l...
processo-jurisdicao-e-processualismo-constitucional-democratico-na-america-l...
 
Kantoorinventaris
KantoorinventarisKantoorinventaris
Kantoorinventaris
 
Office christmas party
Office christmas partyOffice christmas party
Office christmas party
 
памятка по кпу
памятка по кпупамятка по кпу
памятка по кпу
 
Lhc osakilpailu 2 lähtölista
Lhc osakilpailu 2 lähtölistaLhc osakilpailu 2 lähtölista
Lhc osakilpailu 2 lähtölista
 
Hst to pst
Hst to pstHst to pst
Hst to pst
 
Vet & Green Economy for Sustainable Development
Vet & Green Economy for Sustainable Development Vet & Green Economy for Sustainable Development
Vet & Green Economy for Sustainable Development
 
Pollution agenda project
Pollution agenda projectPollution agenda project
Pollution agenda project
 
выступл.на конференции
выступл.на конференциивыступл.на конференции
выступл.на конференции
 
Presentatie sports events ipad
Presentatie sports events ipadPresentatie sports events ipad
Presentatie sports events ipad
 
Cocaine cloud administration at YaC
Cocaine cloud administration at YaCCocaine cloud administration at YaC
Cocaine cloud administration at YaC
 
White paper (kwarts) stofvrijwerken in de bouw
White paper (kwarts) stofvrijwerken in de bouwWhite paper (kwarts) stofvrijwerken in de bouw
White paper (kwarts) stofvrijwerken in de bouw
 
Situation task action_results_document_-_star_original_original
Situation task action_results_document_-_star_original_originalSituation task action_results_document_-_star_original_original
Situation task action_results_document_-_star_original_original
 
Basics of Silverlight 2
Basics of Silverlight 2Basics of Silverlight 2
Basics of Silverlight 2
 
Analysis of pendulum’s digipak
Analysis of pendulum’s digipakAnalysis of pendulum’s digipak
Analysis of pendulum’s digipak
 
Passivevoice
PassivevoicePassivevoice
Passivevoice
 
Group1
Group1Group1
Group1
 
Famous Five Redux
Famous Five ReduxFamous Five Redux
Famous Five Redux
 
Anythinglean Slide Show
Anythinglean Slide ShowAnythinglean Slide Show
Anythinglean Slide Show
 
Jack burtons magazine analysis
Jack burtons magazine analysisJack burtons magazine analysis
Jack burtons magazine analysis
 

Más de shweta-sharma99 (13)

Biometrics
BiometricsBiometrics
Biometrics
 
Biometrics
BiometricsBiometrics
Biometrics
 
Testing
TestingTesting
Testing
 
Rep on grid computing
Rep on grid computingRep on grid computing
Rep on grid computing
 
Java practical
Java practicalJava practical
Java practical
 
Graphics file
Graphics fileGraphics file
Graphics file
 
Vbreport
VbreportVbreport
Vbreport
 
Software re engineering
Software re engineeringSoftware re engineering
Software re engineering
 
Simplex
SimplexSimplex
Simplex
 
Grid computing
Grid computingGrid computing
Grid computing
 
Cyborg
CyborgCyborg
Cyborg
 
Smartphone
SmartphoneSmartphone
Smartphone
 
Instruction cycle
Instruction cycleInstruction cycle
Instruction cycle
 

Último

The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 

Último (20)

The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 

Sql commands

  • 1. SQL COMMANDS CREATE TABLE COMMANDS Case Solved Table create table case_solved ( case_solved_id number primary key, case_id number not null unique references case(case_id), fir_no number not null unique, date_case_closed date not null ); Case Table create table case ( case_id number primary key, fir_no number not null references fir(fir_no), case_incharge_id number not null unique, date_case_open date not null ); Complainant table create table complainant ( fir_no number primary key references fir(fir_no), complaintant_name text(30) not null, fathers_name text(30) not null,
  • 2. address text(50) not null, sex text(5) not null, phone_no number not null ); Daily diary table create table daily_diary ( s_no number primary key, _date date not null, emp_id number not null references employee(emp_id), duty text(30) NOT NULL, duty_shift text(30) not null ); Designation Table create table designation ( emp_id number primary key references employee(emp_id), rank text(20) not null, salary number not null, date_joined date not null ); Duty Officer Table create table duty_officer (
  • 3. fir_no number references fir(fir_no), duty_officer_id number references employee(emp_id), primary key(fir_no,duty_officer_id) ); Employee table create table employee ( emp_id number primary key, emp_name text(30) not null, sex text(5) not null, address text(100) not null, phone_no number not null ); Empound Officer Table create table empound_officer ( empound_id number references empound(empound_id), investigation_officer_id number references employee(emp_id), primary key(empound_id,investigation_officer_id) ); Empound Table create table empound ( empound_id number primary key, fir_no number not null references fir(fir_no),
  • 4. vehicle_no number not null, date_emopound date not null, date_release date not null, under_section text(30) not null ); FIR Investigation Officer Table create table fir_investigation_officer ( fir_no number references fir(fir_no), investigation_officer_id number references employee(emp_id), primary key(fir_no,investigation_officer_id) ); FIR Table create table fir ( fir_no number primary key, date_of_fir date not null, date_of_crime date not null, under_section text(20) not null, details text(50) );
  • 5. INSERTION COMMANDS Designation table INSERT INTO designation ( emp_id, rank, salary, date_joined ) VALUES ('1231', 'constabler', '20000', '1-6-1995'); EMPLOYEE TABLE INSERT INTO employee ( emp_id, emp_name, address, sex, phone_no ) VALUES ('1231', 'rajesh kumar', 'model town ludhiana', 'male', '9592477245'); FIR TABLE INSERT INTO fir ( fir_no, date_of_fir, date_of_crime, under_section, details ) VALUES ('1023', '24-4-2011', '21-4-2011', '420', 'robbery'); EMPOUND_OFFICER INSERT INTO empound_officer ( empound_id, investigation_officer_id ) VALUES ('1342', '1231'); FIR_INVESTIGATION_OFFICER INSERT INTO fir_investigation_officer ( fir_no, investigation_officer_id ) VALUES ('1023', '1231'); DUTY_OFFICER INSERT INTO duty_officer ( fir_no, duty_officer_id ) VALUES ('1023', '1231');
  • 6. DAILY_DIARY INSERT INTO daily_diary ( s_no, _date, emp_id, duty, duty_shift ) VALUES ('23', '24-04-2011', '1231', '8', 'morning'); EMPOUND INSERT INTO empound ( empound_id, fir_no, vehicle_no, under_section, date_empound, date_release ) VALUES ('1342', '1023', '3465', '356', '24-4-2011', '21-04-2011'); COMPLAINTANT INSERT INTO complaintant ( fir_no, complaintant_name, fathers_name, address, sex, phone_no ) VALUES ('1023', 'Ravi kumar', 'parkash kumar', 'haibowal ludhiana', 'male', '9834562786'); CASE INSERT INTO case ( case_id, fir_no, case_incharge_id, date_case_open ) VALUES ('234', '1023', '1231', '24-4-2011'); CASE_SOLVED INSERT INTO case_solved ( case_solved_id, case_id, fir_no, date_case_closed ) VALUES ('251', '234', '1023', '27-5-2011');
  • 7. Data query language SELECT emp_name, address FROM employee; Output SELECT * FROM empound WHERE fir_no<1035; SELECT * FROM designation;
  • 8. SELECT DISTINCT empound_id FROM empound_officer; Output SELECT * FROM complaintant WHERE complaintant_name='kalpana' And fathers_name='niraj sharma'; SELECT * FROM complaintant WHERE complaintant_name='rajesh kumar' Or fathers_name='niraj sharma'; Output