InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
How Do You Bcp Only A Certain Set Of Rows Out Of A Large Table? |
|
Answer» If you’re in ASE 11.5 or later, create a view for those rows and BCP out from the view. In EARLIER ASE versions, you’ll have to select those rows into a separate table first and BCP out from that table. In both CASES, the speed of copying the data DEPENDS on whether there is a SUITABLE index for retrieving the rows. If you’re in ASE 11.5 or later, create a view for those rows and BCP out from the view. In earlier ASE versions, you’ll have to select those rows into a separate table first and BCP out from that table. In both cases, the speed of copying the data depends on whether there is a suitable index for retrieving the rows. |
|
| 2. |
What Are The Main Advantages And Disadvantages Of Using Identity Columns? |
|
Answer» The main advantage of an identity column is that it can generate unique, SEQUENTIAL numbers very efficiently,REQUIRING only a minimal amount of I/O. The disadvantage is that the generated VALUES themselves are not transactional, and that the identity values may jump ENORMOUSLY when the server is shutdown the rough way (RESULTING in “identity gaps”). The main advantage of an identity column is that it can generate unique, sequential numbers very efficiently,requiring only a minimal amount of I/O. The disadvantage is that the generated values themselves are not transactional, and that the identity values may jump enormously when the server is shutdown the rough way (resulting in “identity gaps”). |
|
| 3. |
Is There Any Disadvantage Of Splitting Up Your Application Data Into A Number Of Different Databases? |
|
Answer» When there are relations between TABLES / OBJECTS across the DIFFERENT databases, then there is a disadvantage indeed: if you would restore a dump of one of the databases, those relations may not be consistent anymore. This means that you should always back up a consistent set of databases is the unit of backup / restore. Therefore, when MAKING this KIND of design decision, backup/restore issues should be considered (and the DBA should be consulted). When there are relations between tables / objects across the different databases, then there is a disadvantage indeed: if you would restore a dump of one of the databases, those relations may not be consistent anymore. This means that you should always back up a consistent set of databases is the unit of backup / restore. Therefore, when making this kind of design decision, backup/restore issues should be considered (and the DBA should be consulted). |
|
| 4. |
How Do You Tell The Data Time Of Server Started? |
|
Answer» select “SERVER START TIME” = crdate from master..sydatabases where NAME = “TEMPDB” or
select “Server Start Time” = crdate from master..sydatabases where name = “tempdb” or
|
|
| 5. |
How Frequently You Defrag The Database? |
|
Answer» When EVER there are INSERTIONS, updations & DELETIONS in a table we do defrag. When ever there are insertions, updations & deletions in a table we do defrag. |
|
| 6. |
What Are Constraints? Explain Different Types Of Constraints? |
|
Answer» CONSTRAINTS ENABLE the RDBMS ENFORCE the integrity of the database automatically, without needing you to CREATE TRIGGERS, rule or defaults. Constraints enable the RDBMS enforce the integrity of the database automatically, without needing you to create triggers, rule or defaults. |
|
| 7. |
How Do You Force A Transaction To Fail? |
|
Answer» By KILLING a PROCESS you can FORCE a TRANSACTION to FAIL. By killing a process you can force a transaction to fail. |
|
| 8. |
How Do You Optimize A Select Statement? |
|
Answer» USING the SARG’s in the where clause, checking the query plan using the set SHOW plan on. If the query is not considering the proper index, then will have to FORCE the correct index to RUN the query faster. Using the SARG’s in the where clause, checking the query plan using the set show plan on. If the query is not considering the proper index, then will have to force the correct index to run the query faster. |
|
| 9. |
How Do You Optimize A Stored Procedure? |
|
Answer» By creating APPROPRIATE INDEXES on TABLES. Writing a query BASED on the index and how to pick up the appropriate index. By creating appropriate indexes on tables. Writing a query based on the index and how to pick up the appropriate index. |
|
| 10. |
What Are Advantage Of Using Triggers? |
|
Answer» To MAINTAIN the REFERENTIAL INTEGRITY. To maintain the referential integrity. |
|
| 11. |
How Many Triggers Will Be Fired If Ore Than One Row Is Inserted? |
|
Answer» The NUMBERS of rows you are inserting into a table, that many NUMBER of TIMES trigger GETS fire. The numbers of rows you are inserting into a table, that many number of times trigger gets fire. |
|
| 12. |
What Are Different Types Of Locks, Explain? |
|
Answer» Shared LOCK: – used by process that is reading PAGES. Multiple shared locks can be held on one page; a single shared lock prevents any exclusive lock from being acquired. Shared locks typically are held only for the duration of the read on a particular page. If holdlock is SPECIFIED, shared locks are held until the completion of the command or the transaction it is in. Shared Lock: – used by process that is reading pages. Multiple shared locks can be held on one page; a single shared lock prevents any exclusive lock from being acquired. Shared locks typically are held only for the duration of the read on a particular page. If holdlock is specified, shared locks are held until the completion of the command or the transaction it is in. |
|
| 13. |
How Can You Force An Index? |
|
Answer» Just WRITE the name or the INDEX number in the bracket to FORCE the index. Just write the name or the index number in the bracket to force the index. |
|
| 14. |
What Is Index Covering? |
|
Answer» When all the keys of non-clustered index are used in SELECT statement and also in where CLAUSE then the non-clustered index does not need to go to LAST level of index it just pick the data from leaf-level so it takes less TIME to execute the QUERY this is called Index-Covering.
When all the keys of non-clustered index are used in select statement and also in where clause then the non-clustered index does not need to go to last level of index it just pick the data from leaf-level so it takes less time to execute the query this is called Index-Covering.
|
|
| 15. |
What Is An Index? How Many Types Of Indexes Are There? |
|
Answer» Index is used to PROVIDE faster access to the data in a table than SCANNING EVERY page. Sometimes index can be used as mechanism for enforcing uniqueness. Index is used to provide faster access to the data in a table than scanning every page. Sometimes index can be used as mechanism for enforcing uniqueness. |
|
| 16. |
How Will You Optimize A Query? |
Answer»
|
|
| 17. |
Can I Run Any Transactsql Command On A Partitioned Table In Sybase? |
|
Answer» No. Once you have partitioned a table, you cannot USE any of the following TransactSQL commands on the table until you unpartition it:
No. Once you have partitioned a table, you cannot use any of the following TransactSQL commands on the table until you unpartition it:
|
|
| 18. |
Given A Table Which Contains Some Rows With Duplicate Keys, How Would You Remove The Duplicates? |
|
Answer» create temporary table with same table structure and then create unique index on this temporary table with option ignore_dup_row. now insert DATA into temp table from the table in which duplicate records EXISTS. while inserting RECORD into temp table, duplicate rows will get ingored. Finally temp table will have unique records
create temporary table with same table structure and then create unique index on this temporary table with option ignore_dup_row. now insert data into temp table from the table in which duplicate records exists. while inserting record into temp table, duplicate rows will get ingored. Finally temp table will have unique records
|
|
| 19. |
How To Save Space When Inserting Rows Monotonically? |
|
Answer» If the COLUMNS that comprise the CLUSTERED index are monotonically increasing (that is, new row key values are greater than those previously inserted) the following System 11 dbcc tune will not split the page when it’s half way full. Rather it’ll LET the page fill and then allocate another page: If the columns that comprise the clustered index are monotonically increasing (that is, new row key values are greater than those previously inserted) the following System 11 dbcc tune will not split the page when it’s half way full. Rather it’ll let the page fill and then allocate another page: |
|
| 20. |
How To View The Log Files In Sybase? |
|
Answer» CD $SYBASE/$SYBASE_ASE/install cd $SYBASE/$SYBASE_ASE/install |
|
| 21. |
Can I Partition Any Table In Sybase? |
|
Answer» No. You cannot partition the following kinds of TABLES: No. You cannot partition the following kinds of tables: |
|
| 22. |
How Do I Choose Which Tables To Partition In Sybase? |
|
Answer» You should partition heap tables that have large amounts of CONCURRENT insert activity. (A heap table is a table with no clustered INDEX.) Here are some examples: You should partition heap tables that have large amounts of concurrent insert activity. (A heap table is a table with no clustered index.) Here are some examples: |
|
| 23. |
Does Table Partitioning Require User Defined Segments In Sybase? |
|
Answer» No. By design, each table is INTRINSICALLY assigned to one segment, called the default segment. When a table is partitioned, any partitions on that table are distributed among the DEVICES assigned to the default segment.In the example under “How Do I Create A Partitioned Table That Spans MULTIPLE Devices?”, the table SITS on a userdefined segment that spans three devices No. By design, each table is intrinsically assigned to one segment, called the default segment. When a table is partitioned, any partitions on that table are distributed among the devices assigned to the default segment.In the example under “How Do I Create A Partitioned Table That Spans Multiple Devices?”, the table sits on a userdefined segment that spans three devices |
|
| 24. |
What Is Open Server In Sybase? |
|
Answer» Sybase open server is a VITAL component of Sybase and MICROSOFT Open Data Services . The Sybase open server is a major component for handling distributed database systems and thus FORMS a vital and POWERFUL server SIDE component of Sybase systems . One of the major feature of this is Sybase open server is interoperability.
Sybase open server is a vital component of Sybase and Microsoft Open Data Services . The Sybase open server is a major component for handling distributed database systems and thus forms a vital and powerful server side component of Sybase systems . One of the major feature of this is Sybase open server is interoperability.
|
|
| 25. |
How To Start/stop Ase When Cpu Reboots? |
|
Answer» Below is an example of the various files (on Irix) that are needed to start/stop an ASE. The information can easily be extended to any UNIX platform. The IDEA is to allow as much flexibility to the two classes of administrators who manage the machine:
Below is an example of the various files (on Irix) that are needed to start/stop an ASE. The information can easily be extended to any UNIX platform. The idea is to allow as much flexibility to the two classes of administrators who manage the machine:
|
|
| 26. |
What Is The Command For Quitting From Sybase? |
|
Answer» syb_quit(0) command can be USED to EXIT from SYBASE DATABASE .
syb_quit(0) command can be used to exit from Sybase database .
|
|
| 27. |
What Is The Relationship Between Jdbc And Sybase? |
|
Answer» JDBC is a Application PROGRAMMING INTERFACE which helps Java DEVELOPERS to interact with Database like Sybase via DML STATEMENTS (Insert, Update, Delete and so on). JDBC is a Application programming Interface which helps Java Developers to interact with Database like Sybase via DML Statements (Insert, Update, Delete and so on). |
|
| 28. |
What Is A Coalesce? What Is The Equivalent Of Oracle/db2 Coalesce Function In Sybase? |
|
Answer» Coalesce is also available in SYBASE This FUNCTIONS EVALUATES the listed expressions and RETURNS the first nonnull value. If all the expressions are null, coalesce returns null
Coalesce is also available in Sybase This functions evaluates the listed expressions and returns the first nonnull value. If all the expressions are null, coalesce returns null
|
|
| 29. |
Explanation About Replication Server Software? |
|
Answer» Replication server SOFTWARE MAKES you to manage multiple data platforms very easily. Some of the features which it provides are heterogeneous replication and synchronization ACROSS various APPLICATIONS bi directionally. It provides services from the client to server and server to client. Replication server software makes you to manage multiple data platforms very easily. Some of the features which it provides are heterogeneous replication and synchronization across various applications bi directionally. It provides services from the client to server and server to client. |
|
| 30. |
Explain About Open Switch Business Continuity Software? |
|
Answer» OPEN switch business software helps you to work on the BACK up SYSTEM without any hassles making your primary database server secured. It GIVES you connectivity to the primary database from the secondary server EVEN in the middle of the application. Open switch business software helps you to work on the back up system without any hassles making your primary database server secured. It gives you connectivity to the primary database from the secondary server even in the middle of the application. |
|
| 31. |
Explain About Mirror Activator Disk Mirroring? |
|
Answer» This SOFTWARE works with storage replication systems and replicates the database to an available ASE or any database back up devices such as oracle. It INCREASES the security of applications and ALSO REDUCES the FAIL over time for data applications. This software works with storage replication systems and replicates the database to an available ASE or any database back up devices such as oracle. It increases the security of applications and also reduces the fail over time for data applications. |
|
| 32. |
What Is Procedure Cache And Data Cache In Sybase? |
|
Answer» Procedure cache is the MEMORY area where compiled query tree run e.g, procedure, batch query. Data Cache is the memory area where data that is required for the CURRENT querys running is bought from DISK on to memory for building result SETS. Procedure cache is the memory area where compiled query tree run e.g, procedure, batch query. Data Cache is the memory area where data that is required for the current querys running is bought from Disk on to memory for building result sets. |
|
| 33. |
Give The Benefits Of Data Integration Suite? |
|
Answer» Some of the benefits which you can get from a Data integration suite are Some of the benefits which you can get from a Data integration suite are |
|
| 34. |
Explain About Enterprise Scalability And Roi Of Data Integration Suite? |
|
Answer» Enterprise SCALABILITY provides increased capacity without any new addition of hardware. It increases the capacity by increasing the availability in the enterprise data layer. Enterprise scalability provides increased capacity without any new addition of hardware. It increases the capacity by increasing the availability in the enterprise data layer. |
|
| 35. |
What Is The Difference In Storage Type Of Numeric And Decimal Data Types In Sybase? |
|
Answer» The NUMERIC and decimal TYPES are IDENTICAL in all respects but ONE: The numeric and decimal types are identical in all respects but one: |
|
| 36. |
Explain About The Data Integration Suite Features? |
|
Answer» Data integration suite offers advanced development and management TOOLS. Integration of data is very easy and efficient as you can navigate your data to a specified address without much DIFFICULTY. The five important FEATURES are ETL, Data FEDERATION, Replications, Real TIME events and search events. Data integration suite offers advanced development and management tools. Integration of data is very easy and efficient as you can navigate your data to a specified address without much difficulty. The five important features are ETL, Data federation, Replications, Real time events and search events. |
|
| 37. |
Explain About Power Designer Data Modeling Software? |
|
Answer» Power designer has two unique tools KNOWN as Link and Sync technologies.This technology offers Data base designers to design efficient data models through which one can OFFER efficient design. ALSO Data base designers can SHARE resources AMONG them which will improve the productivity and performance Power designer has two unique tools known as Link and Sync technologies.This technology offers Data base designers to design efficient data models through which one can offer efficient design. Also Data base designers can share resources among them which will improve the productivity and performance |
|
| 38. |
Explain About The Mainframe Connect Tools From Sybase? |
|
Answer» This connectivity tool gives ACCESS to high performance tools which connects you very FAST to the main frame data sources. It gives you read and write access to DATABASES. It also has a FACILITY by which you can connect the main frame data to SECONDARY data storage facilities. This connectivity tool gives access to high performance tools which connects you very fast to the main frame data sources. It gives you read and write access to databases. It also has a facility by which you can connect the main frame data to secondary data storage facilities. |
|
| 39. |
Explain The Benefits You Can Get From Mainframe Connect? |
|
Answer» These are the following benefits you can get from mainframe CONNECT: – These are the following benefits you can get from mainframe connect: – |
|
| 40. |
Explain About The Features Of Sybase Iq? |
|
Answer» Sybase IQ stores data BASE in the FORM of columns of data rather in rows. This storage model IMPROVES the accessibility and search criteria for the data. Performance of the search criteria improves GREATLY because it searches only columns rather than the rows and columns of the database. This is also environment FRIENDLY. Sybase IQ stores data base in the form of columns of data rather in rows. This storage model improves the accessibility and search criteria for the data. Performance of the search criteria improves greatly because it searches only columns rather than the rows and columns of the database. This is also environment friendly. |
|
| 41. |
Explain The Structure Of Adaptive Server Enterprise? |
|
Answer» Structure of ASE INSTALLATION hosts several databases and it comprises of one DATA server. Also system files occupy only one meta data. USER databases are STORED in the form of TABLES. Security and information privacy can be protected by setting permissions. Structure of ASE installation hosts several databases and it comprises of one data server. Also system files occupy only one meta data. User databases are stored in the form of tables. Security and information privacy can be protected by setting permissions. |
|
| 42. |
Explain What Is Update Statistics In Sybase? |
|
Answer» The update statistics command helps the server make the best decisions about which indexes to use when it PROCESSES a query, by providing information about the distribution of the key values in the indexes. The update statistics commands create statistics, if there are no statistics for a particular column, or REPLACES existing statistics if they already exist. The statistics are stored in the SYSTEM TABLES systabstats and sysstatistics. The update statistics command helps the server make the best decisions about which indexes to use when it processes a query, by providing information about the distribution of the key values in the indexes. The update statistics commands create statistics, if there are no statistics for a particular column, or replaces existing statistics if they already exist. The statistics are stored in the system tables systabstats and sysstatistics. |
|
| 43. |
What Are Stored Procedures? |
|
Answer» Stored procedure is a database object which is COLLECTION of SQL statements or constructs. PARAMETERS can be passed and returned, and error codes may be checked. Stored procedures, after their FIRST execution, BECOME memory resident and do not need to be reparsed, reoptimized, or recompiled. So they are faster. Stored procedure is a database object which is collection of SQL statements or constructs. Parameters can be passed and returned, and error codes may be checked. Stored procedures, after their first execution, become memory resident and do not need to be reparsed, reoptimized, or recompiled. So they are faster. |
|
| 44. |
What Are Triggers? Why Do We Use Them? Diff Types Of Triggers? What Are Magic Tables? |
|
Answer» A trigger is a stored procedure BOUND to a table, which is implicitly executed when a user attempts to modify DATA with an insert, delete, or update command. A trigger is a stored procedure bound to a table, which is implicitly executed when a user attempts to modify data with an insert, delete, or update command. |
|
| 45. |
State Some Of The Criticism About Sybase Iq? |
|
Answer» Sybase storage systems are optimized for Dataware housing applications where DATA cannot be modified can be modified by searching and ACCESSING the data. Its column based SEARCH criteria gives high performance for search but it negates the writing capability to the data. Performance for row based relational based databases is worse because it is very DIFFICULT for updating and MODIFYING them. Sybase storage systems are optimized for Dataware housing applications where data cannot be modified can be modified by searching and accessing the data. Its column based search criteria gives high performance for search but it negates the writing capability to the data. Performance for row based relational based databases is worse because it is very difficult for updating and modifying them. |
|
| 46. |
What Is The Depth Of Triggers? |
|
Answer» 16 LEVELS i.e. 16 NESTED TRIGGERS can be there in SYBASE 16 Levels i.e. 16 nested triggers can be there in Sybase |
|
| 47. |
State Some Of The Products Of Sybase? |
|
Answer» Sybase has WORLDS leading products some of them are
Sybase has worlds leading products some of them are |
|
| 48. |
Explain About The Sybase Group? |
|
Answer» Sybase exclusively focuses on mobilizing and managing INFORMATION. It is known to be the third largest database management company after Oracle and IBM. Sybase products on Investment banking are well known to the world over and it OFFERS many customized SOLUTIONS for BUSINESS intelligence. Sybase exclusively focuses on mobilizing and managing information. It is known to be the third largest database management company after Oracle and IBM. Sybase products on Investment banking are well known to the world over and it offers many customized solutions for business intelligence. |
|
| 49. |
How Do I Tell Which Tables Have Identities In Sybase? |
|
Answer» You can tell if a table has IDENTITIES one of two ways:
this will list all the tables and the field within the table that serves as an identity, and the size of the identity field. You can tell if a table has identities one of two ways: this will list all the tables and the field within the table that serves as an identity, and the size of the identity field. |
|