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 4716
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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,...
|
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...
|
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...
| |