I don't have much experience or knowledge about SQL. I got assigned a project which required creating a database thought. I just finished it and generated the SQL code to create the database via Oracle Data Builder. In the script I can see that most tables use all primary keys from each table as unique non-clustered index. I never heard of SQL indexes so I googled it and now I have an idea but still am quite confused. Is it common to use primary keys as non-clustered indexes? Also I read that the SQL Server automatically uses primary keys as clustered index. Can they be both? Could you please give me an example of scenario when to use clustered or non-clustered indexes so I can evaluate if it makes sense for my database? I would appreciate any help. Thanks
Edit: To clarify the database will be used to store data about production and states of different machines during shifts. Each of the 20 tables has 4 PK (usually date, shift, time, machine_id) at average and the database is expected to work with a lot of data as it is storing a lot of information from each shift each day on different machines. Also the client will be gathering data from all the tables into one report that will be either shown to the user or exported to CSV file.