Results 1 to 4 of 4

Thread: How to Create view based on table-join query

  1. #1
    Join Date
    Feb 2009
    Posts
    78

    How to Create view based on table-join query

    How to Create view based on table-join query, I have tried out the following code in my program which works fine but when i use this same for table-join, it does not allow me to do so, so I am confused how do use this same code in my program.

    Code:
    CREATE VIEW view_name AS
    SELECT column_name(s)
    FROM table_name
    WHERE condition

  2. #2
    Join Date
    Dec 2008
    Posts
    69

    Re: How to Create view based on table-join query

    The code that you have mentioned in your view contains rows and columns, just like a real table. The fields in a view are fields from one or more real tables in the database. When the CREATE VIEW statement is executed, metadata describing the view table is stored in the database catalog. You can add SQL functions, WHERE, and JOIN statements to a view and present the data as if the data were coming from one single table.

  3. #3
    Join Date
    Oct 2008
    Posts
    180

    Re: How to Create view based on table-join query

    A primary key is a column (or a combination of columns) with a unique value for each row. The view table is always identical to the table you would obtain as the result of the QUERY expression (query_expression). Each primary key value must be unique within the table. The QUERY expression must not contain a parameter specification or a TOP syntax element. The table expressions of the QUERY specification in the QUERY expression of the CREATE VIEW statement must not contain a QUERY expression. Tables in a database are often related to each other with keys.

  4. #4
    Join Date
    Jan 2009
    Posts
    150

    Re: How to Create view based on table-join query

    An updateable join view table is an updateable view table for which the following conditions must also be fulfilled, "Horizontally merge (combine, match, union) two MS SQL Server tables into one by" BrothersoftEditor: Horizontally merge (combine, match, union) two MS SQL Server tables into one by a common column (field) of data. The two tables are not changed, a new table is created with the results. No complicated options or SQL knowledge required. you can free download MS SQL Server Join Two Tables Software 7.0 now.

Similar Threads

  1. Join two tables using SQL query
    By vaib288932 in forum Software Development
    Replies: 3
    Last Post: 20-08-2010, 12:01 PM
  2. Update with Inner join on same table
    By stracker.phil in forum Software Development
    Replies: 1
    Last Post: 16-12-2009, 02:13 PM
  3. How to create a query on datagrid view in vb.net
    By Ainsley in forum Software Development
    Replies: 3
    Last Post: 10-12-2009, 09:59 PM
  4. Replies: 3
    Last Post: 16-11-2009, 12:29 PM
  5. Sql query with join
    By AZUL in forum Software Development
    Replies: 6
    Last Post: 07-11-2009, 12:00 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,889,518.65534 seconds with 17 queries