Can a table have two primary keys?
Answer Posted / antonis flangofas
ofc you can, stop giving to ppl wrong answers here it is
CREATE TABLE track(
album CHAR(10),
disk INTEGER,
posn INTEGER,
song VARCHAR(255),
PRIMARY KEY (album, disk, posn)
)
if you want to avoid to have id you use this way.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Can unique keys be null?
What is thread join () in threading?
what is a record in a database ? : Sql dba
what is myisam? : Sql dba
What is the purpose of normalization?
How do you select unique values in sql?
First round ------------------- - Procedure - Packages - Views - Virtual tables - Can we use dcl with in function? - Joins and few scenarios - Triggers and its type - Pragma, type and its functionality - How to create db link in oracle - Materialized view - How to find duplicate values from table? - Cursor and its functionality - Write a script to display friday and its date from a entire year. - Exception Handling Second round ------------------------ Gave a scenario like. Need to write a function to perform. When user try to change a password. It must not be last five password and a given password can be combination of characters, symbols, upper and lower case.
How many scalar data types are supported in pl/sql?
What is cursor status?
What is write ahead logging in sql server?
what is a database? : Sql dba
how does a local variable is defined using t-sql? : Transact sql
What is rowid in sql?
What are different types of queries in sql?
How do you modify a table in sql?