SELECT * FROM TABLE_NAME this will select whole table
If Coils table contains 5 columns p_id, coil_no, coil_width, coil_length, coil_name.Then you have to select coil_width and coil_no like :-
SELECT coil_width, coil_length FROM Coils
If you have to select distinct columns from table like coil_name columns have ABCDE12, ABCD13, ABCD14, ABCD12, ABCD14 then you have to choose only distinct values :-
SELECT DISTINCT column_name FROM table_name
SELECT DISTINCT coil_name FROM coils
0 comments:
Post a Comment