Difference between Table and Views ?
Pavan Ramamurthy
Select an image from your device to upload
Data Visibility:
Table: When testing tables, you directly access and manipulate the actual data stored in the table. You can perform CRUD operations (Create, Read, Update, Delete) on the table’s data.View: When testing views, you interact with the data presented by the view rather than the underlying tables. Views act as a filtered or transformed representation of the data, so you need to ensure that the view correctly displays the expected data based on the underlying tables.Data Modification:
Table: As a tester, you may need to perform data modifications during testing, such as inserting test data, updating records, or deleting data. Tables allow you to directly perform these modifications.View: Views are generally read-only, which means you cannot directly modify the data through a view. If you need to modify the data, you would need to identify the underlying table(s) associated with the view and perform the necessary modifications on the table(s).Data Validation:
Table: When testing tables, you can verify the data integrity and consistency by comparing the actual data in the table with expected values or predefined business rules. You can also validate constraints and relationships defined on the table.View: Testing views involves ensuring that the data presented by the view is accurate and aligned with the expected results based on the underlying tables and any filtering or transformation logic applied in the view’s definition.Query Testing:
Table: When testing tables, you may need to write and execute SQL queries directly on the table to fetch specific data for testing purposes or to validate complex business scenarios.View: Testing views involves writing and executing SQL queries against the view to validate the correctness of the view’s logic, data filtering, or transformation. You need to ensure that the query results from the view align with the expected results.
The main difference between view and table is that view is a virtual table based on the result set of an SQL statement, while the table is a database object which consists of rows and columns that store data of a database. In brief, a programmer cannot create views without using table.
steps in a wrongful death lawsuit