What are primary key and foreign key and how they work?
Answer / Mintu Kumar
"A Primary Key is a unique column or set of columns in a table that can be used to identify each row uniquely. It ensures data integrity by enforcing a constraint that requires each value in the primary key column(s) to be unique. A Foreign Key, on the other hand, is a field or set of fields in one table that refers to the Primary Key of another table. It establishes a relationship between two tables and helps maintain data integrity by enforcing referential integrity constraints."
| Is This Answer Correct ? | 0 Yes | 0 No |
I have a table .in the table 100 recored is there .we have get the single row with out using clause..
How many types of sql are there?
How to remove duplicate rows from a table?.
How to create an array in pl/sql?
What packages are available to pl/sql developers?
Write a unique difference between a function and a stored procedure.
Create a procedure to delete certain records from a table and display the total number of records deleted in this process. (Condition for deletion can be of ur choice, for instance delete all records where eid='')
What are system versioned tables?
how to check server status with 'mysqladmin'? : Sql dba
What is a heap in sql?
How to display Row Number with Records in Oracle SQL Plus?
What do you understand by pl/sql packages?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)