About 911,000 results
Open links in new tab
  1. Can we pass parameters to a view in SQL? - Stack Overflow

    Apr 7, 2017 · A view is a stored sql text of a select query. Parameters are out of the discussion. When your stored query returns the column where you want to filter with, you can do it in the …

  2. sql - How to create a View with a With statement ... - Stack Overflow

    Aug 6, 2014 · create view t2 as with t as (select 1 as col) select * from t; Here is a SQL Fiddle showing this example.

  3. SQL user login access to views only - Stack Overflow

    Oct 2, 2013 · The owner of the view and the owner of the base table must be same, then the user with only access to the view can actually see the data from the base table by querying the …

  4. sql - Create Table from View - Stack Overflow

    Jul 14, 2011 · See this answer will help you. script on this answer get you scripts for generate all tables in database. If you modify last where condition, you can get scripts for create table from …

  5. sql - Is it possible to create index on view columns? - Stack Overflow

    When I am creating an index on a view, it shows the following error: ORA-01702: a view is not appropriate here create view xx_emp for select * from emp; What is the reason behind it?

  6. sql - Data from two tables into one view - Stack Overflow

    Jul 16, 2010 · Is it possible to grab data from two tables (that have the same fields) into one view. Basically, so the view sees the data as if it was one table.

  7. Databricks CREATE VIEW equivalent in PySpark - Stack Overflow

    Jun 24, 2023 · CREATE OR REPLACE VIEW myview as select last_day(add_months(current_date(),-1)) Can someone let me know the equivalent of the …

  8. MS SQL Server - How to create a view from a CTE?

    Mar 10, 2014 · MS SQL Server - How to create a view from a CTE? Asked 11 years, 1 month ago Modified 1 year, 5 months ago Viewed 115k times

  9. sql server - Create A View With Dynamic Sql - Stack Overflow

    EXECUTE util_CreateViewWithDynamicSQL 'create view Test as select * from sys.databases' I prefer this approach because dynamic sql is confusing enough and adding double nesting …

  10. How can I create or alter SQL view using R code?

    Aug 28, 2022 · Is it possible to create or alter a SQL view using R code? I'm using SQL Server and so far I haven't found any way to do this with R code. I was hoping there would be a …