GeekInterview.com
Answered Questions

Can I update views in SQL

Asked By: rahul.solanke | Asked On: Jan 14th, 2012

Can I update views in SQL if yes in what scenarios? if your view is joining multiple tables

Answered by: abinay on: Oct 6th, 2012

yes,we can update the view as like a table.view is virtual table,basically it is not having any storage data. in a view data will be coming from table.if u delete the table .we wont update the view.

Answered by: Jean Daniel Joseph on: Jan 17th, 2012

Yes but you remember views, represents a virtual table but if you delete the table you wont be able to update the view

What are the prompts in microstrategy?

Asked By: krishnanannapaneni | Asked On: Dec 27th, 2011

Answered by: suji on: Feb 18th, 2012

During report execution the designer can fill in any part of the report definition such as filter or template. The designer will determine which part of the report to be prompted at the time of report...

Is there an import command in SQL 2008 for an excel spreadsheet?

Asked By: merlin1106 | Asked On: Nov 21st, 2011

Answered by: suji on: Jan 15th, 2012

From your SQL Server Management Studio, you open Object Explorer, go to your database where you want to load the data into, right click, then pick Tasks > Import Data. Select the options based on the excel file

What is soundness of cement?

Asked By: bhavik | Asked On: Nov 15th, 2011

Answered by: shahanth on: Mar 11th, 2013

adding to suji answer Le-Chatliers detects unsoundness due to free lime only. as per I.S specification cement having more than 3% magnesia shall be tested for soundness by "Autoclave" which is sensitive to both free magnesia and LIME.

Answered by: suji on: Mar 7th, 2012

Soundness of cement is the property of hardened cement paste undergoing large change in volume after setting without delayed destructive expansion. This destructive expansion is caused by excessive am...

How to store HTML file in SQL server 2008 ?

Asked By: ravi sonaiya | Asked On: Nov 6th, 2011

Star Read Best Answer

Editorial / Best Answer

Answered by: suji

View all questions by suji   View all answers by suji

Member Since Sep-2005 | Answered On : Nov 7th, 2011

I would use full-text indexing as you are on the latest version. Create and store the html in varbinary(max) column and set its associated file type to ".html" in a file type column. Then enable full-text index, so indexer will parse the data and search only the text content while ignoring the HTML tags. We had been using blob to store the documents, with the new features have come out in the later versions, this seems to be best option. We are in the process of migrating one of the app to use varbinary and to take advantage of the search feature. There is another way of storing using filestrem. Here is a good read-up from MS . FILESTREAM enables SQL Server-based applications to store unstructured data, such as documents and images, on the file system. Applications can leverage the rich streaming APIs and performance of the file system and at the same time maintain transactional consistency between the unstructured data and corresponding structured data http://blogs.msdn.com/b/manisblog/archive/2007/10/21/filestream-data-type-sql-server-2008.aspx Here is another old report from MS back in 2006 explains about using oldway of BLOG http://research.microsoft.com/apps/pubs/default.aspx?id=64525 There are multiple options for you, pick the best approach that matches your needs Thanks, Suji

Answered by: suji on: Nov 7th, 2011

I would use full-text indexing as you are on the latest version. Create and store the html in varbinary(max) column and set its associated file type to ".html" in a file type column. Then enable fu...

What is pseudo pressure ?

Asked By: abbas | Asked On: Oct 26th, 2011

Answered by: suji on: Mar 19th, 2012

In regard to pressure the mathematical pressure function for the variable viscosity and compressibility of gas is Pseudo-pressure or real gas potential. Its the changes that occur in gas properties with pressure.

What is header in brick work?

Asked By: kkulkarni2009 | Asked On: Oct 21st, 2011

Answered by: azmath on: Jul 5th, 2012

The short face of the brick in known as header and the longer is stretcher

Answered by: dhaval on: Jun 5th, 2012

The one brick header frog in cement mortar and second brick surface joint one brick and two brick

How to control escalations from customer?

Asked By: Gaurav | Asked On: Sep 12th, 2011

Answered by: Prashant Rajpurohit on: Sep 25th, 2012

well it depends more on your customer handling skills and use sympathy words and sentences wherever necessary . As it reduces the frustration of customer , Also use this sentence " i totally understan...

Answered by: suji on: Feb 15th, 2012

This is one of the difficult task that any one faces. Here are few things that you can consider . Work closely with customer when there is an issue . follow up email or calls until you fix the iss...

What is open graded aggregate?

Asked By: ytdfja | Asked On: Sep 3rd, 2011

Answered by: shahanth on: Mar 11th, 2013

Open graded aggregate contains only a small percentage of aggregate particles in the small range. This results in more air voids because there are not enough small particles to fill in the voids betwe...

Answered by: suji on: Mar 7th, 2012

Open graded aggregate is the base of single-sized, angular pieces it is washed to remove fines, stone size can vary between 3 in to ¼ in. It has Low-settling compaction, void spaces may constitute up...

Open graded aggregate

Asked By: what is the use of open graded aggregate?? | Asked On: Sep 3rd, 2011

For economical purpose we are using open graded aggregate .... How it is economical.... And are there any problems in using this??

Answered by: suji on: Mar 7th, 2012

Open graded aggregate provides environmental benefits like ....
1.Noise reduction.
2.Durability for new construction or asphalt overlays.
3.Skid resistance.
and also Cost reduction compared to barriers.

Microorganisms

Asked By: sachin patil | Asked On: Aug 26th, 2011

What is difference between micro-organisms & micro pollutants?

Answered by: suji on: Mar 19th, 2012

One-celled organisms, like viruses, fungi, and bacteria, are Microorganisms and are found everywhere in the world. Some microorganisms are needed for living things to survive and there are more microo...

Using examples differentiate between a DBMS, RDBMS and a distributed database

Asked By: JimiJames | Asked On: May 24th, 2011

Been given this question from my son and he has told me that he googled the question but got no satisfactory answer. Would much appreciate an answer.

Answered by: raman sharma on: Mar 2nd, 2012

DBMS is a when data are not stored in table and RDBMS is used to all data are stored in table and distributed database when more than one table are connected with each other so its is called a distributed database

Answered by: suji on: Dec 21st, 2011

DBMS - It’s a software package combination of various computer programs which can be used to control, administer, maintain and use of the database. RDBMS - Its a database management system (DBMS) b...

What is tmt steel?

Asked By: haris vm | Asked On: Apr 26th, 2011

Explain its properties..

Answered by: suji on: Mar 7th, 2012

TMT means Thermomechanical Treatment of steel. It’s a process of simultaneous application of heat and a deformation process of metal, in order to change its shape and refine the microstructure. Hot...

Answered by: harish on: Dec 3rd, 2011

TMT: Thermo-Mechanicaly Treated Steel

How to use roll back query in SQL server 2008

Asked By: plresponse | Asked On: Apr 25th, 2011

Answered by: suji on: Nov 6th, 2011

Here is how you can use rollback in any of the SQL Server versions. works in both SQL Server 2000 and later versions. "sql Begin tran insert into table values or updates rollb...

What is the default admin console port number in websphere?

Asked By: kirankumar samudrala | Asked On: Feb 23rd, 2011

Star Read Best Answer

Editorial / Best Answer

Answered by: suji

View all questions by suji   View all answers by suji

Member Since Sep-2005 | Answered On : Apr 12th, 2011

WebSphere Application Server default ports

•Web container port (HTTP_TRANSPORT) - 9080
•Web container secure port (HTTPS_TRANSPORT) -  9443
•Administrative console port (HTTP_TRANSPORT_ADMIN) -  9090
•Adminstrative console secure port (HTTPS_TRANSPORT_ADMIN) -  9043
•Name service or RMI connector port (BOOTSTRAP_ADDRESS) -  2809
•Simple Object Access Protocol (SOAP) port (SOAP_CONNECTOR_ADDRESS) -  8880
•Data replication service client port (DRS_CLIENT_ADDRESS) -  7873
•Java Message Service (JMS) queued port (JMSSERVER_QUEUED_ADDRESS) -  5558
•JMS security port (JMSSERVER_SECURITY_PORT) -  5557
•JMS direct port (JMSSERVER_DIRECT_ADDRESS) -  5559
•Secure Association Services (SAS) SSL server authentication port (SAS_SSL_SERVERAUTH_LISTENER_ADDRESS) -  9501
•Common Secure Interoperability Version 2 (CSIV2) server transport port (CSIV2_SSL_SERVERAUTH_LISTENER_ADDRESS) -  9503
•CSIV2 client transport port (CSIV2_SSL_MUTUALAUTH_LISTENER_ADDRESS) -  9502


WebSphere Deployment deployment manager default ports

•Administrative console port (HTTP_TRANSPORT_ADMIN) - 9090
•Adminstrative console secure port (HTTPS_TRANSPORT_ADMIN) - 9043
•Name service or RMI connector port (BOOTSTRAP_ADDRESS) - 9809
•Simple Object Access Protocol (SOAP) port (SOAP_CONNECTOR_ADDRESS) - 8879
•Data replication service client port (DRS_CLIENT_ADDRESS) - 7989
•Cell discover port (CELL_DISCOVERY_ADDRESS) - 7277
•Secure Association Services (SAS) SSL server authentication port (SAS_SSL_SERVERAUTH_LISTENER_ADDRESS) - 9401
•Common Secure Interoperability Version 2 (CSIV2) transport port (CSIV2_SSL_SERVERAUTH_LISTENER_ADDRESS) - 9402
•CSIV2 transport port (CSIV2_SSL_MUTUALAUTH_LISTENER_ADDRESS) - 9403
•Object Request Broker (ORB) listener port (ORB_LISTENER_ADDRESS) - 9100

WebSphere Application Server node agent default ports

•Name service or RMI connector port (BOOTSTRAP_ADDRESS) - 2809
•Simple Object Access Protocol (SOAP) port (SOAP_CONNECTOR_ADDRESS) - 8878
•Data replication service client port (DRS_CLIENT_ADDRESS) - 7888
•Secure Association Services (SAS) SSL server authentication port (SAS_SSL_SERVERAUTH_LISTENER_ADDRESS) - 9901
•Common Secure Interoperability Version 2 (CSIV2) transport port (CSIV2_SSL_SERVERAUTH_LISTENER_ADDRESS) - 9101
•CSIV2 transport port (CSIV2_SSL_MUTUALAUTH_LISTENER_ADDRESS) - 9201
•Object Request Broker (ORB) listener port (ORB_LISTENER_ADDRESS) - 9900
•Node discovery port (NODE_DISCOVERY_ADDRESS) - 7272
•Node multicast discovery port (NODE_MULTICAST_DISCOVERY_ADDRESS) - 5000


WebSphere Application Server JMS server default ports

•Java Message Service (JMS) queued port (JMSSERVER_QUEUED_ADDRESS) - 5558
•JMS security port (JMSSERVER_SECURITY_PORT) - 5557
•JMS direct port (JMSSERVER_DIRECT_ADDRESS) - 5559
•Simple Object Access Protocol (SOAP) port (SOAP_CONNECTOR_ADDRESS) - 8876

Answered by: suji on: Apr 12th, 2011

WebSphere Application Server default ports•Web container port (HTTP_TRANSPORT) - 9080•Web container secure port (HTTPS_TRANSPORT) -  9443•Administrative console port (HTTP_TRANSPOR...

Phyton advantages and dis-advantages

Asked By: torch_619 | Asked On: Aug 2nd, 2010

What are the advantage and dis-advantage of phyton programming language?

Answered by: suji on: Mar 2nd, 2012

Python is more like java and bit cumbersome, but it leads to a better design. Python is an interpreted language, high level programming, pure object-oriented, high performance server side scripting la...

Rac database

Asked By: ap_mg | Asked On: Aug 21st, 2009

What difference does it make to a Oracle developer while using rac ? Would/should he realise that it is a rac database ?

Answered by: suji on: Mar 21st, 2011

It makes no difference for the developer and RAC technology is server side and affects the way DBA do they day to day job. Thanks, Suji

Samba attributes

Asked By: abhidepali | Asked On: May 13th, 2009

What are the attributes of samba?

Answered by: suji on: Mar 2nd, 2012

Here are the samba attributes sambaLMPassword sambaNTPassword sambaPwdLastSet sambaAcctFlags sambaLogonTime sambaLogoffTime sambaKickoffTime sambaPwdCanChange sambaPwdMustChange sambaHomeDrive samb...

Python popularity

Asked By: ushanamballa | Asked On: Jan 4th, 2009

Why python is not that much of populAR, when compared to other programming languages?

Answered by: suji on: Mar 2nd, 2012

Python is not so useful in web environment where the user interface is the browser. Hence, lot of people are using PHP for different design goals. Google is tightly connected with python as they make ...

What is short term solvency ratio?

Asked By: divyagarg09 | Asked On: Nov 11th, 2008

Answered by: anil joshi on: Feb 2nd, 2013

Ratios used to judge the adequacy of liquid assets for meeting short-term
obligations as they come due, including
1) the current ratio,
2) the acid-test ratio,
3) the inventory turnover ratio, and
4) the accounts receivable turnover ratio.



Answered by: suji on: Feb 29th, 2012

Short-term Solvency Ratios Its a ratio to measure the firms ability to meet short-term financial obligations. With this the firm will avoid financial distress in the short-run. There are two most important Short-term Solvency Ratios
1. Current Ratio.
2. Quick Ratio.

How to set windows as default os when dual booting ubuntu?

Asked By: Amit Shiknis | Asked On: May 10th, 2008

Star Read Best Answer

Editorial / Best Answer

Answered by: suji

View all questions by suji   View all answers by suji

Member Since Sep-2005 | Answered On : Apr 12th, 2011

Command is - sudo gedit /boot/grub/menu.lst

This will show output as -
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0

The important line is the last one. You will need to change that number 0 to match the Windows boot section. Typically it's always going to be 4 on a default dual-boot configuration. Change this value to 4, and then save and reboot your machine. You should go into Windows instead of Ubuntu automatically.

Answered by: suji on: Apr 12th, 2011

Command is - sudo gedit /boot/grub/menu.lstThis will show output as - ## default num# Set the default entry to the entry number NUM. Numbering starts from 0, and# the entry number 0 is the default ...

Tell about shell aritmetic operators and functions.

Asked By: santhoshkumar | Asked On: Oct 23rd, 2007

Answered by: suji on: Mar 2nd, 2012

There are following shell operators

Arithmetic Operators.

Relational Operators.

Boolean Operators.

String Operators.

File Test Operators.

What is defncopy and it's usage.

Asked By: James | Asked On: Jan 7th, 2007

Copies definitions for specified views, rules, defaults, triggers, procedures, or reports from a database to an operating system file or from an operating system file to a database.

Answered by: patelg1 on: Oct 29th, 2008

Defncopy is a sybase tool that defines the objective statements such views, triggers, defaults,rules and so on

Answered by: suji on: Jan 7th, 2007

The defncopy utility cannot copy table definitions or reports created with Report Workbench.   Invoke the defncopy program directly from the operating system. defncopy provides a non-interac...

Give example for binary datatype non binary datatype?

Asked By: Gajalakshmi | Asked On: Oct 3rd, 2006

Star Read Best Answer

Editorial / Best Answer

Answered by: suji

View all questions by suji   View all answers by suji

Member Since Sep-2005 | Answered On : Nov 6th, 2011

Here are the Binary data types in sql server - bit, binary, varbinary, image. Bit variables store a single bit with a value of 0, 1 or NULL. binary(n) variables store n bytes of fixed-size binary data. They may store a maximum of 8,000 bytes. varbinary(n) variables store variable-length binary data of approximately n bytes. They may store a maximum of 8,000 bytes. image variables store up to 2 gigabytes of data and are commonly used to store any type of data file. Rest of the data types are non-binary

Answered by: suji on: Nov 6th, 2011

Here are the Binary data types in sql server - bit, binary, varbinary, image. Bit variables store a single bit with a value of 0, 1 or NULL. binary(n) variables store n bytes of fixed-size binary da...

Answered by: krishnakumar on: Nov 2nd, 2006

The binary datatype is used for storing the images in the database.the non binary datatypes are integer,varchar etc

What is meant by iframe?

Asked By: GeekAdmin | Asked On: Sep 23rd, 2006

Star Read Best Answer

Editorial / Best Answer

Answered by: suji

View all questions by suji   View all answers by suji

Member Since Sep-2005 | Answered On : Apr 3rd, 2011

iframe is used for creating an inline or floating frame. As most of know frames are mainly used to structure the page or for placing a menu bar on the side and so on. But iframe is used in a different context. That is in other words <iframe> is used to embed or insert content on a page of padding. This is done for several reasons. Say the content may be large enough that the user may wish to place it separately and scroll through it. There are many attributes present in <iframe> and some of the attributes used with <iframe> are namely:

NAME:
Used for specifying the name of the frame.

SCROLL:
Used for specifying the scrolling action to be activated. Can take three values namely AUTO, YES or NO. AUTO will allow the browser to take the decision and activate scroll bar when needed YES specify scroll bar is needed and NO specifies scroll bar is not needed.

ALIGN:
This is used for alignment of text and the values that can be taken by it are namely LEFT, RIGHT, TOP, MIDDLE, and BOTTOM.

FRAMEBORDER:
Used for setting borders, around the frames if needed. A value of 1 set the border around the frame and 0 specify for no border.

HEIGHT:
Used to specify the height of the frame and this value is mentioned in pixels.

HSPACE:
Used for specifying horizontal spacing around the frames.

Answered by: dinesh on: Aug 12th, 2011

iframe means inline frame

Answered by: suji on: Apr 3rd, 2011

iframe is used for creating an inline or floating frame. As most of know frames are mainly used to structure the page or for placing a menu bar on the side and so on. But iframe is used in a differ...

What is describe command in SQL server?

Asked By: Priya | Asked On: Aug 30th, 2006

What is its purpose?How to use it?

Star Read Best Answer

Editorial / Best Answer

Answered by: suji

View all questions by suji   View all answers by suji

Member Since Sep-2005 | Answered On : Nov 5th, 2011

Here are multiple ways to get the table information. The DESCRIBE command does not exist in MS SQL SERVER. This is an Oracle command used to describe the structure of objects within a given database. To achieve the same task in MSSQL Server, there are a series of stored procedures with the prefix SP_ that can be used. To view the structure of a table within the current database, use the command

Code
  1. sp_help 'TABLE_NAME';

If you would like to see more details, Create your custom procedure

Code
  1. CREATE procedure DESCRIBE
  2. (
  3. @tablename varchar(256)
  4. )
  5. AS
  6. begin
  7. SELECT DISTINCT sCols.colid AS 'order', sCols.name, sTyps.name, sCols.length
  8. FROM [syscolumns] sCols
  9. INNER JOIN [systypes] sTyps ON sCols.xtype = sTyps.xtype
  10. INNER JOIN [sysobjects] sObjs ON sObjs.id = sCols.[id]
  11. AND UPPER(sObjs.name) = UPPER(@tablename)
  12. ORDER BY sCols.colid
  13. end

Here is another alternative way to get the same information

Code
  1. sp_columns 'TableName' (e.g. sp_columns 'Employee')
  2. sp_columns [ @table_name = ] object [ , [ @table_owner = ] owner ]
  3. [ , [ @table_qualifier = ] qualifier ]
  4. [ , [ @column_name = ] COLUMN ]
  5. [ , [ @ODBCVer = ] ODBCVer ]

Here is the usage :

Code
  1. EXEC sp_columns @table_name = 'Department', @table_owner = 'sa';
  2. SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'TableName'

Contributors for the editorial answer : Kewlshiva, srilakshmi.b, raaghav,kevaburg

Answered by: Saket Kale on: Oct 24th, 2012

sp_help dbo.customers;

worked for me just fine.

Thanks to the OP, this runs perfectly on SQL 2008 R2, do not know about other versions

Answered by: gangireddy on: Feb 22nd, 2012

To see the structure (description ) of the table in Sql Server the followed command surely works....
sp_help person

Note:***
to display the structure of the table in Sql Server wer use the followed command ...it has the accurate rating ****
sp_help
sp_help person

How would you describe yourself as a person?

Asked By: Interview Candidate | Asked On: Jul 25th, 2005

Star Read Best Answer

Editorial / Best Answer

Answered by: suji

View all questions by suji   View all answers by suji

Member Since Sep-2005 | Answered On : Apr 3rd, 2011

"Describe yourself!", This question is almost invariably asked in the majority of interviews, and just as invariably answered dismally! What does one say and why do we always seem so flustered by the question? Because we have always been taught by our parents and respected elders not to boast or talk about ourselves.

With a childhood full of such repressive advice, its not surprising that the majority of us begin the answer with a stammer and a blush, almost instantly changing from flash to foolish and ruining our chances of employment.

So what do we say? Frankly, just answer the question as it comes. Most disconcerted candidates dread this question and begin with a silly "Basically, my name is ...". Why don't we realize that our CV is there right in front of the interviewer, and he knows this already.

By repeating the stuff that fills our CV, we just demonstrate that we are an 'in-the-box' kind of person, with little if any skill in innovation and presentation.

Actually, a question of this kind is an ideal way to plug in everything we want to say about ourselves that we had leave out of the CV. If you have attended a premier institution, say that the institution taught you much more than the degree it awarded you, mention people who influenced you, talk about the books you like reading, your hobbies and your other interests.

Talk about your strengths; perhaps mention an instance when you used your conflict resolution skills or selling skills or whatever. But make certain that it does not sound like blowing your trumpet. Mention these instances as learning.

Tall about your weaknesses, but make sure that they are 'positive' weaknesses. For instance you could say that that you sometimes pay more attention to detail than is warranted. You can openly confess a tendency to be impatient with team members who cannot carry their own weight, or who cannot contribute sufficiently.

But first, think today what you want to say and practice. Remember, if you hesitate about yourself, your interviewers will doubt whether you fit their bill of requirements. After all, if you don't know about you, who does?

How to describe yourself

Answered by: mendy on: Aug 23rd, 2012

Hi, i am Mendy and I am amused by art so I am taking an art class. I want to be a kindergarten Teacher because I have learned the skills of taking care and teaching any child. I am also single and is ...

Answered by: neha on: Mar 15th, 2012

I would myself as a very simple, adjusting, hardworking, funloving person and sincere and friendly too.

Interview Question

 Ask Interview Question?

 

Career Counselling

 Have Career Question?

 Ask Chandra

 Ask Only Career questions.

Follow us: