The Add View Wizard includes an optional template for view creation.When you open the Views container, the template functionality becomes available.
Expand the server and database containers, then click the Views folder.
Click the New View toolbar button or Alt+F, N, V.
Type the view name in the text box. For this tutorial, use EMP_DEPT.
Select the view’s owner from the dropdown menu. For this tutorial, choose DBA.
Choose the option to use the View Creation wizard or a template. Choose the wizard. Click Next.
Type the SELECT statement to create the view. For example:
CREATE VIEW “DBA”.”emp_dept”(/* view column name,...*/) AS SELECT “department”.”dept_id”, “department”.”dept_name”,”employee”.”emp_id”, ”employee”.”emp_fname”,”employee”.”emp_lname”, ”street”,”employee”.”city”,”employee.state”, ”employee.phone”, FROM “DBA”.”department”,”DBA”.”employee”
Select File > Save View.
Run Interactive SQL.
Type a select statement in the format:
select * from <owner>.<view>
For example
SELECT * FROM “DBA”.”emp_dept”
You can access the results from Sybase Central Java Edition using File > View data in Interactive SQL.