Q1) Display the employee_name, Project_IDs and staff cost for all
employees
Should be like this:
SELECT e.Emp_name, pa.PROJECT_ID, pa.STAFF_COST
FROM Emlpoyee e
JOIN Pallocation pa
ON e.Emp_id = pa.Emp_id
More Related Contents:
- Why is SELECT * considered harmful?
- How to check if a table exists in a given schema
- Synchronizing client-server databases
- ORA-00904: invalid identifier
- How to create multiple one to one’s
- How to select unique records by SQL
- Fastest way to count exact number of rows in a very large table?
- Key value pairs in relational database
- T-SQL Cast versus Convert
- SQL – How to transpose?
- Splitting the string in sql server
- How does table alias names affect performance?
- Performance issue in using SELECT *? [duplicate]
- Need to list all triggers in SQL Server database with table name and table’s schema
- What is the purpose of constraint naming
- How can I do a BEFORE UPDATED trigger with sql server?
- Drop all tables command
- How to find a table having a specific column in postgresql
- Deferrable Constraints in SQL Server
- can we list all tables in msaccess database using sql?
- INSERT COMMAND :: ERROR: column “value” does not exist
- What can cause an Oracle ROWID to change?
- SQL: Using NULL values vs. default values
- How do I change db schema to dbo
- What is the best way to implement soft deletion?
- PostgreSQL how to create a copy of a database or schema?
- Query a Table’s Foreign Key relationships
- Postgres: convert single row to multiple rows (unpivot)
- How to store a list in a db column
- Copy table structure to new table in sqlite3