Hi All,
Below is the SQL of one view in my DB. - SELECT cxc.cst_key AS q37_individual_key, dbo.co_individual.ind_cst_key AS q37_related_ind_key, dbo.co_individual.ind_prf_code AS q37_prf_code,
-
dbo.co_individual.ind_first_name AS q37_first_name, dbo.co_individual.ind_last_name AS q37_last_name,
-
dbo.co_individual.ind_mid_name AS q37_ind_mid_name, dbo.co_individual.ind_sfx_code AS q37_sfx_code,
-
dbo.co_individual.ind_gender AS q37_gender, dbo.co_individual.ind_deceased_flag AS q37_deceased_flag,
-
dbo.co_individual_ext.ind_death_date_ext AS q37_death_date_ext, dbo.co_individual_ext.ind_membership_id_ext AS q37_membership_id_ext,
-
cxc.cxc_rlt_code AS q37_rlt_code, cxc.cxc_start_date AS q37_start_date, cxc.cxc_end_date AS q37_end_date
-
FROM (SELECT cxc_cst_key_1 AS cst_key, cxc_cst_key_2 AS cst_key_2, cxc_rlt_code, cxc_start_date, cxc_end_date
-
FROM dbo.co_customer_x_customer
-
WHERE (cxc_rlt_code =
-
(SELECT TOP (1) fws_option_values
-
FROM dbo.fw_system_option
-
WHERE (fws_key = '3ab8d879-5c2d-480e-8bd0-360aaabb9cae'))) AND (cxc_end_date IS NULL OR
-
cxc_end_date <= GETDATE())
-
UNION ALL
-
SELECT cxc_cst_key_2 AS cst_key, cxc_cst_key_1 AS cst_key_2, cxc_rlt_code2 AS cxc_rlt_code, cxc_start_date, cxc_end_date
-
FROM dbo.co_customer_x_customer AS co_customer_x_customer_1
-
WHERE (cxc_rlt_code =
-
(SELECT TOP (1) fws_option_values
-
FROM dbo.fw_system_option AS fw_system_option_1
-
WHERE (fws_key = '3ab8d879-5c2d-480e-8bd0-360aaabb9cae'))) AND (cxc_end_date IS NULL OR
-
cxc_end_date <= GETDATE())) AS cxc INNER JOIN
-
dbo.co_individual ON cxc.cst_key_2 = dbo.co_individual.ind_cst_key INNER JOIN
-
dbo.co_individual_ext ON dbo.co_individual.ind_cst_key = dbo.co_individual_ext.ind_cst_key_ext
-
-
GO
-
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPane1', @value=N'[0E232FF0-B466-11cf-A24F-00AA00A3EFFF, 1.00]
-
Begin DesignProperties =
-
Begin PaneConfigurations =
-
Begin PaneConfiguration = 0
-
NumPanes = 4
-
Configuration = "(H (1[25] 4[3] 2[56] 3) )"
-
End
-
Begin PaneConfiguration = 1
-
NumPanes = 3
-
Configuration = "(H (1 [50] 4 [25] 3))"
-
End
-
Begin PaneConfiguration = 2
-
NumPanes = 3
-
Configuration = "(H (1 [50] 2 [25] 3))"
-
End
-
Begin PaneConfiguration = 3
-
NumPanes = 3
-
Configuration = "(H (4 [30] 2 [40] 3))"
-
End
-
Begin PaneConfiguration = 4
-
NumPanes = 2
-
Configuration = "(H (1 [56] 3))"
-
End
-
Begin PaneConfiguration = 5
-
NumPanes = 2
-
Configuration = "(H (2 [66] 3))"
-
End
-
Begin PaneConfiguration = 6
-
NumPanes = 2
-
Configuration = "(H (4 [50] 3))"
-
End
-
Begin PaneConfiguration = 7
-
NumPanes = 1
-
Configuration = "(V (3))"
-
End
-
Begin PaneConfiguration = 8
-
NumPanes = 3
-
Configuration = "(H (1[56] 4[18] 2) )"
-
End
-
Begin PaneConfiguration = 9
-
NumPanes = 2
-
Configuration = "(H (1 [75] 4))"
-
End
-
Begin PaneConfiguration = 10
-
NumPanes = 2
-
Configuration = "(H (1[66] 2) )"
-
End
-
Begin PaneConfiguration = 11
-
NumPanes = 2
-
Configuration = "(H (4 [60] 2))"
-
End
-
Begin PaneConfiguration = 12
-
NumPanes = 1
-
Configuration = "(H (1) )"
-
End
-
Begin PaneConfiguration = 13
-
NumPanes = 1
-
Configuration = "(V (4))"
-
End
-
Begin PaneConfiguration = 14
-
NumPanes = 1
-
Configuration = "(V (2))"
-
End
-
ActivePaneConfig = 0
-
End
-
Begin DiagramPane =
-
Begin Origin =
-
Top = 0
-
Left = 0
-
End
-
Begin Tables =
-
Begin Table = "co_individual"
-
Begin Extent =
-
Top = 6
-
Left = 230
-
Bottom = 121
-
Right = 441
-
End
-
DisplayFlags = 280
-
TopColumn = 0
-
End
-
Begin Table = "co_individual_ext"
-
Begin Extent =
-
Top = 6
-
Left = 479
-
Bottom = 121
-
Right = 758
-
End
-
DisplayFlags = 280
-
TopColumn = 0
-
End
-
Begin Table = "cxc"
-
Begin Extent =
-
Top = 6
-
Left = 38
-
Bottom = 121
-
Right = 192
-
End
-
DisplayFlags = 280
-
TopColumn = 0
-
End
-
End
-
End
-
Begin SQLPane =
-
End
-
Begin DataPane =
-
Begin ParameterDefaults = ""
-
End
-
End
-
Begin CriteriaPane =
-
Begin ColumnWidths = 11
-
Column = 1440
-
Alias = 900
-
Table = 1170
-
Output = 720
-
Append = 1400
-
NewValue = 1170
-
SortType = 1350
-
SortOrder = 1410
-
GroupBy = 1350
-
Filter = 1350
-
Or = 1350
-
Or = 1350
-
Or = 1350
-
End
-
End
-
End
-
' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'VIEW', @level1name=N'vw_client_ri_individual_spouses'
-
-
GO
-
EXEC sys.sp_addextendedproperty @name=N'MS_DiagramPaneCount', @value=1 ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'VIEW', @level1name=N'vw_client_ri_individual_spouse'
Can anyone pls explain me the code below of create view SQL. I am not getting why and how these extended properties are neing used in this code.
2 4749 ck9663 2,878
Recognized Expert Specialist
It's very hard to answer your question without knowing what this query is for, what kind of application it is designed for, why is it needed to be created, etc...
But you may start from learning what is extended property here.
Good luck!!!
--- CK
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Roland Hall |
last post by:
I have two(2) issues.
I'm experiencing a little difficulty and having to resort to a work around.
I already found one bug, although stated the bug was only in ODBC, which I'm
not using. It appears to be in the OLEDB driver also.
My connection was:
conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strPath & ";" &
"Extended Properties='Text;HDR=NO;FMT=Delimited'"
|
by: Roland Hall |
last post by:
I have two(2) issues.
I'm experiencing a little difficulty and having to resort to a work around.
I already found one bug, although stated the bug was only in ODBC, which I'm
not using. It appears to be in the OLEDB driver also.
My connection was:
conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & strPath & ";" &
"Extended Properties='Text;HDR=NO;FMT=Delimited'"
|
by: Roland Hall |
last post by:
Three times the charm? Sorry for the repost. Trying to get my account
right.
I have two(2) issues.
I'm experiencing a little difficulty and having to resort to a work around.
I already found one bug, although stated the bug was only in ODBC, which I'm
not using. It appears to be in the OLEDB driver also.
My connection was:
|
by: funcSter |
last post by:
I want to retrieve data from an Excel file like how I would with a
database. I understand that I would have to use OLE DB. Somehow I
think I cannot get the connection string right, as the bit of code
fails at "objConn.Open()" with the error:
System.Data.OleDb.OleDbException: Could not find installable ISAM.
Can somebody please help me out? I'm still a learning programmer, so
if someone can point out my mistakes, it'll be great! Thanks!
...
|
by: svijay |
last post by:
hi
I have got a strange problem. May I know any solution for this.
Here is the detailed description about the problem
We have got a mainframe system and also production and development
server.
| |
by: jcvoon |
last post by:
Hi:
How to notify extended properties provider when the component is
removed ? so that i can deleted the entry for that component from
extended properties holder (the collection use to hold all the extended
properties value).
Thanks
JCVoon
|
by: Ben |
last post by:
Hi!
I have a user on my database that has only "select" access
(db_datareader).
Problem is, I also want him to also be able to create/update extended
properties on tables or views, but without modifying the tables'
schema.
I played around with GRANT but apparently, a member of "db_datareader"
cannot create/modify extended properties on an object if he's not the
owner of this object. I tried making this user a member of
|
by: sweetpotatop |
last post by:
Hi,
I wonder if it is possible to read the content of an excel spreadsheet
through aspnet. The spreadsheet (workbook) is protected and it resides
in a network drive.
Please provide sample code if possible. Thanks in advance. Your help
is greatly appreciated.
|
by: acw |
last post by:
On a SQL Server 2000 db I would like to setup a stored procedure that
accesses couple tables and runs the extended stored procedure
xp..cmdshell. The goal is to grant users with limited privileges the
right to run the stored procedure but not the rights to directly
access either the referenced tables or the extended stored procedure.
TIA!
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |