1. The document discusses how to implement semantic search in SQL Server 2012. It explains how to install semantic features, create catalogs and fulltext indexes for tables, and perform semantic searches on data.
2. To perform semantic searches, a catalog and fulltext index must be created for each table. Queries can then retrieve matching rows based on keywords.
3. Advanced semantic searches can apply business logic by using qualifier tables to filter and sort results based on conditions. Stored procedures allow combining semantic searches with qualifier tables to retrieve intelligent results.
Envision Ecommerce Customer Self- Service WordPress plugin provides a quick self-support to customers by allowing them directly ask their queries to the store owner regarding their products or brand. It is basically a Self-Assistant plugin that provides a quick self-support to customers.
This document provides an overview of different methods that can be used to debug the FastFormula including ESS_LOG_WRITE, HR_TRACE, PAY_INTERNAL_LOG_WRITE, DEBUG, US_FORMULA_LOGGING, ADD_RLOG, and ADD_LOG. It describes the syntax of each method and any limitations or specific usage instructions. It also provides details on how to view the logs generated by these different debugging techniques.
For each controller in a Rails application, there is a corresponding views directory that contains template files used to display the views for that controller's actions. The final HTML output is composed of templates, partials, and a layout. Templates can be written using ERB or Builder and partials allow breaking templates into reusable chunks. A single layout is used to combine the templates and partials, typically inserting the template content using yield.
This document provides release notes for Oracle9i Reports Developer Release 2 (9.0.2) from April 2002. It describes general issues, configuration issues, UI issues, and workarounds. Key points include deprecated features from earlier versions, issues with pluggable data sources, configuration of the Reports_CLASSPATH variable, and enabling source control in the Windows UI. The document provides technical details and troubleshooting guidance for using Oracle9i Reports Developer.
The document discusses implementing a user hook in Oracle Absence Management to prevent employees from overbooking leaves. It describes how the business wants to avoid overbooking but the standard application allows it. The solution was to [1] create a custom package that checks leave balances during booking and displays an error message if exceeded, [2] register a user hook to call this package, and [3] add a profile option to control when the check is enforced. This provides flexibility to allow overbooking from the core form but not self-service.
This document discusses using Oracle server features in Forms applications. It describes useful server features like constraints, triggers, and stored program units. It also covers handling PL/SQL code, trapping server errors, and performing DDL commands using the FORMS_DDL built-in subprograms. Supported PL/SQL8 features in Forms are also identified.
This document discusses JSP processing and elements. It states that JSP pages have a .jsp extension and are organized like HTML files. A JSP page is compiled to a servlet class when first requested or modified. The document also briefly mentions the MVC design pattern and describes common JSP elements like scriptlets, expressions, declarations, and directives.
( 13 ) Office 2007 Coding With Excel And Excel ServicesLiquidHub
This document provides instructions for a lab on coding with Excel and Excel Services. It involves publishing an Excel workbook to a document library as a trusted file location, then developing a C# console application that uses the Excel Services Web Service to call the workbook, pass in parameters, retrieve calculation results, and display them. The lab demonstrates how to incorporate spreadsheet logic into applications while protecting proprietary information on the server. Completing the lab takes an estimated 60 minutes and involves publishing the workbook, setting up the trusted location, adding a web reference, coding the application to open the workbook, set cell values, calculate, get results and close the session, building the project, and running the application with sample inputs to test it.
Envision Ecommerce Customer Self- Service WordPress plugin provides a quick self-support to customers by allowing them directly ask their queries to the store owner regarding their products or brand. It is basically a Self-Assistant plugin that provides a quick self-support to customers.
This document provides an overview of different methods that can be used to debug the FastFormula including ESS_LOG_WRITE, HR_TRACE, PAY_INTERNAL_LOG_WRITE, DEBUG, US_FORMULA_LOGGING, ADD_RLOG, and ADD_LOG. It describes the syntax of each method and any limitations or specific usage instructions. It also provides details on how to view the logs generated by these different debugging techniques.
For each controller in a Rails application, there is a corresponding views directory that contains template files used to display the views for that controller's actions. The final HTML output is composed of templates, partials, and a layout. Templates can be written using ERB or Builder and partials allow breaking templates into reusable chunks. A single layout is used to combine the templates and partials, typically inserting the template content using yield.
This document provides release notes for Oracle9i Reports Developer Release 2 (9.0.2) from April 2002. It describes general issues, configuration issues, UI issues, and workarounds. Key points include deprecated features from earlier versions, issues with pluggable data sources, configuration of the Reports_CLASSPATH variable, and enabling source control in the Windows UI. The document provides technical details and troubleshooting guidance for using Oracle9i Reports Developer.
The document discusses implementing a user hook in Oracle Absence Management to prevent employees from overbooking leaves. It describes how the business wants to avoid overbooking but the standard application allows it. The solution was to [1] create a custom package that checks leave balances during booking and displays an error message if exceeded, [2] register a user hook to call this package, and [3] add a profile option to control when the check is enforced. This provides flexibility to allow overbooking from the core form but not self-service.
This document discusses using Oracle server features in Forms applications. It describes useful server features like constraints, triggers, and stored program units. It also covers handling PL/SQL code, trapping server errors, and performing DDL commands using the FORMS_DDL built-in subprograms. Supported PL/SQL8 features in Forms are also identified.
This document discusses JSP processing and elements. It states that JSP pages have a .jsp extension and are organized like HTML files. A JSP page is compiled to a servlet class when first requested or modified. The document also briefly mentions the MVC design pattern and describes common JSP elements like scriptlets, expressions, declarations, and directives.
( 13 ) Office 2007 Coding With Excel And Excel ServicesLiquidHub
This document provides instructions for a lab on coding with Excel and Excel Services. It involves publishing an Excel workbook to a document library as a trusted file location, then developing a C# console application that uses the Excel Services Web Service to call the workbook, pass in parameters, retrieve calculation results, and display them. The lab demonstrates how to incorporate spreadsheet logic into applications while protecting proprietary information on the server. Completing the lab takes an estimated 60 minutes and involves publishing the workbook, setting up the trusted location, adding a web reference, coding the application to open the workbook, set cell values, calculate, get results and close the session, building the project, and running the application with sample inputs to test it.
Payilagam Software Training Institute provides real time SQL and PLSQL training in Chennai. We share our syllabus here for the benefit of SQl&PLSQL learners
For More details please visit: www.payilagam.com
Validation type 'special' in value setsFeras Ahmad
This document describes how to configure a special validation type value set in Oracle to restrict users to limited or conditional value entries. Special value sets allow for dynamic or specific checks through PL/SQL code. The steps provided configure a special value set that can be assigned to forms or concurrent requests to validate user-entered values meet criteria, such as ensuring a date is at least three months prior to the current date.
This document explains how to use the IF function in Excel to calculate VAT based on product category, with different VAT rates applied depending on whether the product is electronic (4% VAT) or electrical (12.5% VAT). The IF function syntax allows you to specify an logical test (category in cell B2), a value if true (multiply price by 4%), and a value if false (multiply price by 12.5%). Quotes must be used for text but not for numbers. Practice is needed to properly use quotes, commas and brackets in the IF function syntax.
The document provides an overview of key concepts in OAF development including controllers, application modules, view objects, entity objects, and page/region structure. It also discusses tools for OAF development like Java decompilers, JDeveloper, and browser developer modes. Finally, it outlines methods for customizing OAF applications through controller/view object extensions, personalizations, and deployment of changes.
This document discusses BI Publisher, an Oracle product for template-based report generation. It provides an overview of BI Publisher, describing what it is, its advantages, and how it separates data extraction from report layout. It also discusses the key classes used in the BI Publisher API - Report Definition, Report Manager, and Engine - and provides examples of how to generate and publish a report using these classes.
This document discusses displaying messages and alerts in Form Builder. It describes using built-in functions like ERROR_CODE and MESSAGE_TYPE to identify error types. Form Builder can display default, informative, and error messages. Alerts can be created and customized at runtime using properties and buttons to handle different responses from the user. Built-in functions like FORM_SUCCESS and FORM_FAILURE help test for success or failure.
This document discusses user defined functions (UDF) and views in MySQL. It provides the syntax for creating UDFs and views. UDFs allow users to define reusable functions that can be called from queries. Views act as virtual tables that are based on the result set of a SELECT statement. The document provides an example of creating a UDF to return the number of jobs applied by a user and an example of creating a view from an employee table to select employee IDs and names. It describes some key properties and limitations of UDFs and how views can be used to rename attributes and insert/delete data.
The document provides instructions on creating a simple person maintenance screen in Oracle Application Framework (OAF). It includes steps to create a database table to store person details, populate it with sample data, generate the necessary OAF business components like the entity object, view object and application module, and build the UI page with search and display regions. The overall goal is to build a working OAF page to view and search person records without any Java coding.
This document provides a summary of 20 interview questions related to Informatica. It discusses concepts like the components of Informatica, what a repository is and how to add one, different types of transformations used in mappings and their purposes, how to make transformations reusable, how to import source and target definitions, and what a session is and how to create it. The document is a training resource that provides answers to common Informatica interview questions.
This presentation features the fundamentals of SQL tunning like SQL Processing, Optimizer and Execution Plan, Accessing Tables, Performance Improvement Consideration Partition Technique. Presented by Alphalogic Inc : https://www.alphalogicinc.com/
Amit Bansal is a CTO who has conducted over 200 workshops on SQL Server and BI technologies. The presentation discusses SQL Server query optimizer characteristics and how plan guides can be used to manage query plans. Plan guides allow forcing or locking down a query plan to provide performance stability. Different types of plan guides include object, SQL, and template plan guides. The presentation covers creating, implementing, and managing plan guides.
This document provides information about Venkatesan Prabu Jayakantham (Venkat), the Managing Director of KAASHIVINFOTECH, a software company in Chennai. It outlines Venkat's experience in Microsoft technologies and certifications. It also describes KAASHIVINFOTECH's inplant training programs for students in fields like engineering, electronics, and mechanical/civil studies. The training focuses on developing technical skills through hands-on demonstrations and projects.
This document provides information about Venkatesan Prabu Jayakantham (Venkat), the Managing Director of KAASHIVINFOTECH, a software company in Chennai. It outlines Venkat's experience in Microsoft technologies and certifications. It also describes KAASHIVINFOTECH's inplant training programs for students in fields like engineering, electronics, and mechanical. The training focuses on developing technical skills through hands-on demos and projects.
BPC Logics allows us to perform calculations on BPC data. BPC comes with three different types of logic (1) Worksheet logic, (2) Dimension logic and (3)Advanced (Script) logic. Normally we use one or more, or all of them is our BPC environment. Usage of these scripts depends on many factors, for example (1) performance issue, (2) complexity, (3) user preferences, etc. each of these script has its own its own advantages and disadvantages. Among the logics, script logic is much loved and widely used logic. Refer the embedded slide for more information. Hope you will enjoy it. Thanks, Surya Padhi
Waiting too long for Excel's VLOOKUP? Use SQLite for simple data analysis!Amanda Lam
** This workshop was conducted in the Hong Kong Open Source Conference 2017 **
Excel formulas can be quite slow when you're processing data files with thousands of rows. It's also especially difficult to maintain the files when you have some messy mixture of VLOOKUPs, Pivot Tables, Macros and VBAs.
In this interactive workshop targeted for non-coders, we will make use of SQLite, a very lightweight and portable open source database library, to perform some simple and repeatable data analysis on large datasets that are publicly available. We will also explore what you can further do with the data by using some powerful extensions of SQLite.
While SQLite may not totally replace Excel in many ways, after the workshop you will find that it can improve your work efficiency and make your life much easier in so many use cases!
Who should attend this workshop?
- If you're frustrated with the slow performance of Excel formulas when dealing with large datasets in your daily work
- No coding experience is required
Sql server 2012 tutorials writing transact-sql statementsSteve Xu
This tutorial provides an introduction to writing basic Transact-SQL statements for creating and manipulating database objects. It is divided into three lessons: Lesson 1 covers creating a database, table, inserting and updating data; Lesson 2 covers configuring permissions on database objects by creating logins, users, views and stored procedures; Lesson 3 covers deleting database objects. The document contains step-by-step tutorials to demonstrate creating a database, table, inserting and reading data, and configuring permissions on the database objects.
Advance Sql Server Store procedure PresentationAmin Uddin
This document discusses stored procedures in SQL, including:
1. What stored procedures are and how they improve performance over dynamic SQL.
2. How to create stored procedures with parameters and return values.
3. How to call/execute stored procedures and examples of inserting, updating, and deleting data using stored procedures.
4. The process of stored procedure compilation and recompilation, including when recompilation may be needed due to changes in data or indexes.
Oracle Fast Formula allows users to write formulas using English words and basic math functions to calculate elements like payroll and PTO accrual without needing to learn database structures or programming languages. It can be used for tasks like validating inputs, defining assignment sets, and configuring reports. Users define formulas by navigating through the Oracle system and writing logic that references database items.
This document provides information about Mr. J. Venkatesan Prabu, who is the Managing Director of KAASHIV INFOTECH, a software company in Chennai. It outlines his experience of over 8 years working with Microsoft technologies and his role in guiding over 20,000 young minds through career guidance programs. It also lists some of the awards he has received, including the Microsoft MVP award several times. The document then provides sample interview questions and answers related to SQL Server and promotes the inplant training programs offered by KAASHIV INFOTECH.
This document discusses how Oracle Discoverer reports were deployed in the Banner Student System (BSS) at Higher Colleges of Technology (HCT) in the United Arab Emirates. It provides an overview of HCT and the history of management reporting there. It then covers the basic concepts of Oracle Discoverer, how to create an End User Layer and build reports using Discoverer. Sample reports deployed in BSS via Discoverer are also discussed.
This document contains answers to questions about Informatica and data warehousing concepts. It defines key Informatica components like the Designer, Server Manager and Repository Manager. It describes how to create mappings, sessions, transformations and reusable objects. It also covers data warehousing topics such as the differences between OLTP and data warehousing systems, and between views and materialized views in a data warehouse.
Payilagam Software Training Institute provides real time SQL and PLSQL training in Chennai. We share our syllabus here for the benefit of SQl&PLSQL learners
For More details please visit: www.payilagam.com
Validation type 'special' in value setsFeras Ahmad
This document describes how to configure a special validation type value set in Oracle to restrict users to limited or conditional value entries. Special value sets allow for dynamic or specific checks through PL/SQL code. The steps provided configure a special value set that can be assigned to forms or concurrent requests to validate user-entered values meet criteria, such as ensuring a date is at least three months prior to the current date.
This document explains how to use the IF function in Excel to calculate VAT based on product category, with different VAT rates applied depending on whether the product is electronic (4% VAT) or electrical (12.5% VAT). The IF function syntax allows you to specify an logical test (category in cell B2), a value if true (multiply price by 4%), and a value if false (multiply price by 12.5%). Quotes must be used for text but not for numbers. Practice is needed to properly use quotes, commas and brackets in the IF function syntax.
The document provides an overview of key concepts in OAF development including controllers, application modules, view objects, entity objects, and page/region structure. It also discusses tools for OAF development like Java decompilers, JDeveloper, and browser developer modes. Finally, it outlines methods for customizing OAF applications through controller/view object extensions, personalizations, and deployment of changes.
This document discusses BI Publisher, an Oracle product for template-based report generation. It provides an overview of BI Publisher, describing what it is, its advantages, and how it separates data extraction from report layout. It also discusses the key classes used in the BI Publisher API - Report Definition, Report Manager, and Engine - and provides examples of how to generate and publish a report using these classes.
This document discusses displaying messages and alerts in Form Builder. It describes using built-in functions like ERROR_CODE and MESSAGE_TYPE to identify error types. Form Builder can display default, informative, and error messages. Alerts can be created and customized at runtime using properties and buttons to handle different responses from the user. Built-in functions like FORM_SUCCESS and FORM_FAILURE help test for success or failure.
This document discusses user defined functions (UDF) and views in MySQL. It provides the syntax for creating UDFs and views. UDFs allow users to define reusable functions that can be called from queries. Views act as virtual tables that are based on the result set of a SELECT statement. The document provides an example of creating a UDF to return the number of jobs applied by a user and an example of creating a view from an employee table to select employee IDs and names. It describes some key properties and limitations of UDFs and how views can be used to rename attributes and insert/delete data.
The document provides instructions on creating a simple person maintenance screen in Oracle Application Framework (OAF). It includes steps to create a database table to store person details, populate it with sample data, generate the necessary OAF business components like the entity object, view object and application module, and build the UI page with search and display regions. The overall goal is to build a working OAF page to view and search person records without any Java coding.
This document provides a summary of 20 interview questions related to Informatica. It discusses concepts like the components of Informatica, what a repository is and how to add one, different types of transformations used in mappings and their purposes, how to make transformations reusable, how to import source and target definitions, and what a session is and how to create it. The document is a training resource that provides answers to common Informatica interview questions.
This presentation features the fundamentals of SQL tunning like SQL Processing, Optimizer and Execution Plan, Accessing Tables, Performance Improvement Consideration Partition Technique. Presented by Alphalogic Inc : https://www.alphalogicinc.com/
Amit Bansal is a CTO who has conducted over 200 workshops on SQL Server and BI technologies. The presentation discusses SQL Server query optimizer characteristics and how plan guides can be used to manage query plans. Plan guides allow forcing or locking down a query plan to provide performance stability. Different types of plan guides include object, SQL, and template plan guides. The presentation covers creating, implementing, and managing plan guides.
This document provides information about Venkatesan Prabu Jayakantham (Venkat), the Managing Director of KAASHIVINFOTECH, a software company in Chennai. It outlines Venkat's experience in Microsoft technologies and certifications. It also describes KAASHIVINFOTECH's inplant training programs for students in fields like engineering, electronics, and mechanical/civil studies. The training focuses on developing technical skills through hands-on demonstrations and projects.
This document provides information about Venkatesan Prabu Jayakantham (Venkat), the Managing Director of KAASHIVINFOTECH, a software company in Chennai. It outlines Venkat's experience in Microsoft technologies and certifications. It also describes KAASHIVINFOTECH's inplant training programs for students in fields like engineering, electronics, and mechanical. The training focuses on developing technical skills through hands-on demos and projects.
BPC Logics allows us to perform calculations on BPC data. BPC comes with three different types of logic (1) Worksheet logic, (2) Dimension logic and (3)Advanced (Script) logic. Normally we use one or more, or all of them is our BPC environment. Usage of these scripts depends on many factors, for example (1) performance issue, (2) complexity, (3) user preferences, etc. each of these script has its own its own advantages and disadvantages. Among the logics, script logic is much loved and widely used logic. Refer the embedded slide for more information. Hope you will enjoy it. Thanks, Surya Padhi
Waiting too long for Excel's VLOOKUP? Use SQLite for simple data analysis!Amanda Lam
** This workshop was conducted in the Hong Kong Open Source Conference 2017 **
Excel formulas can be quite slow when you're processing data files with thousands of rows. It's also especially difficult to maintain the files when you have some messy mixture of VLOOKUPs, Pivot Tables, Macros and VBAs.
In this interactive workshop targeted for non-coders, we will make use of SQLite, a very lightweight and portable open source database library, to perform some simple and repeatable data analysis on large datasets that are publicly available. We will also explore what you can further do with the data by using some powerful extensions of SQLite.
While SQLite may not totally replace Excel in many ways, after the workshop you will find that it can improve your work efficiency and make your life much easier in so many use cases!
Who should attend this workshop?
- If you're frustrated with the slow performance of Excel formulas when dealing with large datasets in your daily work
- No coding experience is required
Sql server 2012 tutorials writing transact-sql statementsSteve Xu
This tutorial provides an introduction to writing basic Transact-SQL statements for creating and manipulating database objects. It is divided into three lessons: Lesson 1 covers creating a database, table, inserting and updating data; Lesson 2 covers configuring permissions on database objects by creating logins, users, views and stored procedures; Lesson 3 covers deleting database objects. The document contains step-by-step tutorials to demonstrate creating a database, table, inserting and reading data, and configuring permissions on the database objects.
Advance Sql Server Store procedure PresentationAmin Uddin
This document discusses stored procedures in SQL, including:
1. What stored procedures are and how they improve performance over dynamic SQL.
2. How to create stored procedures with parameters and return values.
3. How to call/execute stored procedures and examples of inserting, updating, and deleting data using stored procedures.
4. The process of stored procedure compilation and recompilation, including when recompilation may be needed due to changes in data or indexes.
Oracle Fast Formula allows users to write formulas using English words and basic math functions to calculate elements like payroll and PTO accrual without needing to learn database structures or programming languages. It can be used for tasks like validating inputs, defining assignment sets, and configuring reports. Users define formulas by navigating through the Oracle system and writing logic that references database items.
This document provides information about Mr. J. Venkatesan Prabu, who is the Managing Director of KAASHIV INFOTECH, a software company in Chennai. It outlines his experience of over 8 years working with Microsoft technologies and his role in guiding over 20,000 young minds through career guidance programs. It also lists some of the awards he has received, including the Microsoft MVP award several times. The document then provides sample interview questions and answers related to SQL Server and promotes the inplant training programs offered by KAASHIV INFOTECH.
This document discusses how Oracle Discoverer reports were deployed in the Banner Student System (BSS) at Higher Colleges of Technology (HCT) in the United Arab Emirates. It provides an overview of HCT and the history of management reporting there. It then covers the basic concepts of Oracle Discoverer, how to create an End User Layer and build reports using Discoverer. Sample reports deployed in BSS via Discoverer are also discussed.
This document contains answers to questions about Informatica and data warehousing concepts. It defines key Informatica components like the Designer, Server Manager and Repository Manager. It describes how to create mappings, sessions, transformations and reusable objects. It also covers data warehousing topics such as the differences between OLTP and data warehousing systems, and between views and materialized views in a data warehouse.
The document provides 5 tips for successfully upgrading SQL Server Integration Services (SSIS) packages to SQL Server 2012:
1. Manually edit package configurations, especially connection strings, after upgrading with the upgrade wizard since configurations are not automatically updated.
2. Use the Project Conversion Wizard to convert packages to the new project deployment model in SQL Server 2012 for improved deployment and management.
3. Update Execute Package tasks to use project references rather than file references for calling child packages within the same project.
4. Parameterize the PackageName property of Execute Package tasks to dynamically configure which child package runs at runtime.
5. Convert package configurations to parameters when possible to take advantage of improved configuration handling in the
This document provides information about Venkatesan Prabu Jayakantham (Venkat), the Managing Director of KAASHIVINFOTECH, a software company in Chennai. It outlines Venkat's experience in Microsoft technologies and certifications. It also details some of Venkat's accomplishments like receiving the Microsoft MVP award multiple times and his contributions to developing young minds through career guidance programs. The document provides inplant training schedules at KAASHIV INFOTECH for students from different disciplines and ends with contact details for the company.
This document provides information about an inplant training program offered by KAASHIV INFOTECH in Chennai, India. It includes the training schedules for different disciplines like CSE/IT/MCA, electronics/electrical/EIE, and mechanical/civil students. The training covers topics such as Big Data, cloud computing, CCNA, ethical hacking, and more. It also provides details about the founder and managing director of KAASHIV INFOTECH, including his experience and qualifications.
This document provides information about Venkatesan Prabu Jayakantham (Venkat), the Managing Director of KAASHIVINFOTECH, a software company in Chennai. It outlines Venkat's experience in Microsoft technologies and certifications. It also details some of Venkat's accomplishments like receiving the Microsoft MVP award multiple times and his contributions to developing young minds through career guidance programs. The document provides inplant training schedules at KAASHIV INFOTECH for students from different disciplines and ends with contact details for the company.
This document provides information about Venkatesan Prabu Jayakantham (Venkat), the Managing Director of KAASHIVINFOTECH, a software company in Chennai. It outlines Venkat's experience in Microsoft technologies and certifications. It also details some of Venkat's accomplishments like receiving the Microsoft MVP award multiple times and various awards from his previous employer HCL Technologies. The document provides information about inplant training programs offered by KAASHIVINFOTECH in areas like cloud computing, networking, and ethical hacking. It lists the schedules and topics covered for different engineering streams.
1. DOCUMENTATION ON SEMANTIC SEARCH
A basic idea of semantic search can be obtained by going through the following link.
http://wiki.hsr.ch/Datenbanken/files/Semantic_Search_In_MS_SQL_2012_Rico_Suter.pdf
1.INSTALLATION OF SEMANTICS IN SQL SERVER
1.1 Installation First we have to install the Microsoft SQL Server 2012 with semantic search
capabilities. The setup needs three steps:
1. Installing the server with semantic search feature
2. Install additional filter packs
3. Install a Semantic Language Database
The details about the installation are also mentioned in the pdf link given above.
2. SEMANTIC SEARCHING
For a semantic to work on any table, say CM.APPLICATION_GROUP_MF,
we have to create two things,
1. Catalog for a table
2. Fulltext Index for a table
2.1 CATALOGUE CREATION
The syntax for making the catalog is as follows:
CREATEFULLTEXTCATALOG<catalogname>WITHACCENT_SENSITIVITY=ON;
Go
An example is given below:
--createcatalogforCM.APPLICATION_GROUP_MF
CREATEFULLTEXTCATALOGApplication_groupCatalogWITHACCENT_SENSITIVITY=ON;
Go
2.1 FULLTEXT INDEX CREATION
The syntax for creating a Fulltext Index is as follows:
2. CREATEFULLTEXTINDEXON<TableName>(
[ColumnName]LANGUAGE1033Statistical_Semantics,
[ColumnName]LANGUAGE1033Statistical_Semantics,
.
.
.
[ColumnName]LANGUAGE1033Statistical_Semantics
)
KEYINDEX<PK_TableName>
ON<catalog_created_previously>
WITHSTOPLIST=SYSTEM
Go
An Example has been given below:
--createFULLTEXTINDEXonCM.APPLICATION_GROUP_MF
CREATEFULLTEXTINDEXONCM.APPLICATION_GROUP_MF(
[HARD_CODE]LANGUAGE1033Statistical_Semantics,
[NAME]LANGUAGE1033Statistical_Semantics,
[UPDATED_BY]LANGUAGE1033Statistical_Semantics
)
KEYINDEXPK_APPLICATION_GROUP_MF
ONApplication_groupCatalog
WITHSTOPLIST=SYSTEM
Go
Now as we have created both index and catalog for a given table, we can apply semantics to that as
follows :
DECLARE@SearchTermASNVARCHAR(max);
Set@SearchTerm='<whatyouwanttosearch>';
DECLARE@cmdASNVARCHAR(max)
DECLARE@tmpSearchNVARCHAR(500)
SELECT@tmpSearch=REPLACE(@SearchTerm,'',''',''')
SET@cmd=N'SELECT*FROM<TableName>INNERJOIN
semantickeyphrasetable(<TableName>,*)
on<primarykey_of_the_table>=document_keyWHEREkeyphraseIN
('''+@tmpSearch+''')ORDERBYscoreDESC'
print@cmd
EXEC(@cmd)
An example has been given below :
DECLARE@SearchTermASNVARCHAR(max);
Set@SearchTerm='WHATARETHEDETAILSABOUTSHIPMATE';
DECLARE@cmdASNVARCHAR(max)
DECLARE@tmpSearchNVARCHAR(500)
SELECT@tmpSearch=REPLACE(@SearchTerm,'',''',''')
3. SET@cmd=N'SELECT*FROMCM.APPLICATION_GROUP_MFINNERJOIN
semantickeyphrasetable(CM.APPLICATION_GROUP_MF,*)
onID=document_keyWHEREkeyphraseIN('''+@tmpSearch+''')ORDERBYscoreDESC'
print@cmd
EXEC(@cmd)
Now, if you want to apply semantics to a combination of tables, you can use inner join of tables.
Eg,
SET@cmd=N'SELECTdistincta.SUR_NAME,a.FIRST_NAME,a.MIDDLE_NAME,c.APPRAISAL_SCORE
FROM CM.PERSONNEL_MFasa
INNERJOINsemantickeyphrasetable(CM.PERSONNEL_MF,*)assona.id=document_key
INNERJOINFD.TEMPLATE_DATA_HDasconc.EMP_ID=a.id
InnerJoinsemantickeyphrasetable(FD.TEMPLATE_DATA_HD,*)asqonc.ID=q.document_key
WHEREq.keyphraseIN('''+@tmpSearch+''')ors.keyphraseIN('''+@tmpSearch+''')'
Here, appraisal_score is in FD.TEMPLATE_DATA_HDtable and and the rest of the selected columns are
from CM.PERSONNEL_MFtable. So, here we are applying semantics to the combination of both the
tables.
Semantics without the required BUSSINESS LOGIC is useless. So, we shall now learn how to include
BUSSINESS LOGIC to the semantics.
Now, lets consider a table, Data1
Now, we need to find the most intelligent students from this table. So, here I give the condition as
best student = APPRAISAL_SCORE >9
Similarly, a bad student is a student whose APPRAISAL_SCORE<5
4. So, using semantics , we can give intelligence to our program.
For doing so, we have to give ‘Qualifier Tables’.
So, my Qualifier table in this case is Qualifier_Promotion
Now, I shall share the code here:
USESHIPMATE1704_4SBNT
GO
/******Object: StoredProcedure[dbo].[shipmate_Search] ScriptDate:6/5/2015
12:04:49AM******/
SETANSI_NULLSON
GO
SETQUOTED_IDENTIFIERON
GO
--toexecutetheprocedure
--execshipmate_Search'whoisbothgoodandreliableofallfromData1'
ALTERPROCEDURE[dbo].[shipmate_Search]
(
@SearchTermNVARCHAR(500)
)
AS
BEGIN
DECLARE@cmdASNVARCHAR(max)
DECLARE@columnnameASNVARCHAR(max)
DECLARE@tmpSearchNVARCHAR(500)
DECLARE@wherequeryNVARCHAR(Max)=NULL
Declare@orderbyqueryNVARCHAR(MAX)=NULL
Declare@SQLQUERYNVARCHAR(MAX)
DECLARE@cmd2ASNVARCHAR(max)
SELECT@tmpSearch=REPLACE(@SearchTerm,'',''',''')
---Qualifierlisttabledatafetch---
SET@cmd2=N'SELECT*into##tempTable2FROMQualifier_PromotionWHERE
WordIN('''+@tmpSearch+''')orSynonymsIN('''+@tmpSearch+''')'
print@cmd2
EXEC(@cmd2)
select*into#tempfrom##tempTable2